if(cLock)
{
std::ostringstream os;
- os << host << "/oc/presence";
+ os << host << assembleSetResourceUri(uri, queryParams).c_str();
std::lock_guard<std::mutex> lock(*cLock);
OCDoHandle handle;
if(cLock)
{
std::ostringstream os;
-
- os << host << "/oc/presence";
+ os << host << assembleSetResourceUri(uri, queryParams).c_str();
std::lock_guard<std::mutex> lock(*cLock);
result = OCDoResource(handle, method,
if(!cLock)
return OC_STACK_ERROR;
-
+
return OCDoResource(handle, OC_REST_PRESENCE, os.str().c_str(), nullptr, nullptr,
OC_NON_CONFIRMABLE, &cbdata);
}