From f666a91bc36881b044fe2f9a897c7287f0e27c8b Mon Sep 17 00:00:00 2001 From: Erich Keane Date: Mon, 29 Sep 2014 10:28:38 -0700 Subject: [PATCH] Logging effort created a regression in InProcClientWrapper that caused get/observe to not work. This fixes said regression Change-Id: Id6ac04d3aec3ee1f9f0d93e2cfe06cc65324d1b5 --- src/InProcClientWrapper.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/InProcClientWrapper.cpp b/src/InProcClientWrapper.cpp index 5916d53..d849843 100644 --- a/src/InProcClientWrapper.cpp +++ b/src/InProcClientWrapper.cpp @@ -396,7 +396,7 @@ namespace OC if(cLock) { std::ostringstream os; - os << host << "/oc/presence"; + os << host << assembleSetResourceUri(uri, queryParams).c_str(); std::lock_guard lock(*cLock); OCDoHandle handle; @@ -559,8 +559,7 @@ namespace OC if(cLock) { std::ostringstream os; - - os << host << "/oc/presence"; + os << host << assembleSetResourceUri(uri, queryParams).c_str(); std::lock_guard lock(*cLock); result = OCDoResource(handle, method, @@ -629,7 +628,7 @@ namespace OC if(!cLock) return OC_STACK_ERROR; - + return OCDoResource(handle, OC_REST_PRESENCE, os.str().c_str(), nullptr, nullptr, OC_NON_CONFIRMABLE, &cbdata); } -- 2.7.4