Update Multicast Presence query
authorHeewon Park <h_w.park@samsung.com>
Fri, 17 Apr 2015 01:50:59 +0000 (10:50 +0900)
committerUze Choi <uzchoi@samsung.com>
Fri, 17 Apr 2015 08:03:18 +0000 (08:03 +0000)
 - delete 'coap://' string in query of Multicast

Change-Id: I6b13368407e5d064f7b91e0c24a7467b796361a0
Signed-off-by: Heewon Park <h_w.park@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/760
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
service/notification-manager/NotificationManager/src/hosting.c

index 6539b08..d3cc3b9 100755 (executable)
@@ -422,7 +422,7 @@ OCStackResult requestPresence(char *sourceResourceAddress)
     cbData.cd = NULL;
 
     char queryUri[OIC_STRING_MAX_VALUE] = { '\0' };
-    sprintf(queryUri, "coap://%s%s", sourceResourceAddress , OC_PRESENCE_URI);
+    sprintf(queryUri, "%s%s", sourceResourceAddress , OC_PRESENCE_URI);
     OC_LOG_V(DEBUG, HOSTING_TAG, "initializePresenceForCoordinating Query : %s", queryUri);
 
     result = OCDoResource(&handle, OC_REST_PRESENCE, queryUri, 0, 0, OC_ETHERNET, OC_LOW_QOS, &cbData, NULL, 0);