[IOT-2135] [RI][Linux][SampleApp] Occlientcoll app not sending PUT Request
authorVeeraj Khokale <veeraj.sk@samsung.com>
Fri, 5 May 2017 09:00:33 +0000 (14:30 +0530)
committerAshok Babu Channa <ashok.channa@samsung.com>
Mon, 8 May 2017 05:02:40 +0000 (05:02 +0000)
Remove device address and port from put request query URI

Change-Id: I5b5a81b36e160c049d6f8970f9d809534741fc11
Signed-off-by: Veeraj Khokale <veeraj.sk@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/19655
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Reviewed-by: Harish Marappa <h.marappa@samsung.com>
resource/csdk/stack/samples/linux/SimpleClientServer/occlientcoll.cpp

index 4cb7e1f..7e42020 100644 (file)
@@ -323,9 +323,7 @@ int InitPutRequest(OCClientResponse * clientResponse)
     OCCallbackData cbData;
     //* Make a PUT query*/
     std::ostringstream getQuery;
-    getQuery << "coap://" << clientResponse->devAddr.addr << ":" <<
-            clientResponse->devAddr.port <<
-            "/a/room" << queryInterface[TestType].text;
+    getQuery << "/a/room" << queryInterface[TestType].text;
     cbData.cb = putReqCB;
     cbData.context = (void*)DEFAULT_CONTEXT_VALUE;
     cbData.cd = NULL;