Fix issue with multicast prescence subscriptions
authorMandeep Shetty <mandeep.shetty@intel.com>
Tue, 21 Apr 2015 23:19:40 +0000 (16:19 -0700)
committerUze Choi <uzchoi@samsung.com>
Wed, 22 Apr 2015 12:48:40 +0000 (12:48 +0000)
commit599d78e819d2264b87d9b407522b6c48e6dbd1be
tree742799424973fa1dd837ee00d1e89cbc72f702d1
parent004a036c5fb6953f48c074c8aeca889b2c6aafb8
Fix issue with multicast prescence subscriptions

After registering for a multicast presence, the callback handler URI,
that is searched for isn't completley formed, so callbacks don't happen.

Made uri format consistent across unicast and multicast.
Updated C++ sample app presenceclient.cpp for multicast presence cases.
Also removed repeat test case in presenceclient.cpp PrintUsage().
Updated 2 files in the service directory for multicast presence cases.
Added test in C sample occlient.cpp for a multicast presence
subscription.
Modified OCPlatform.h::subscribePresence() documentation to inform api
users of the expected format.

Change-Id: Ic1a262566f605dd0882e563b4ee2d03bd21016be
Signed-off-by: Charlie Lenahan <charlie.lenahan@intel.com>
Signed-off-by: Mandeep Shetty <mandeep.shetty@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/787
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Sashi Penta <sashi.kumar.penta@intel.com>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Tested-by: Uze Choi <uzchoi@samsung.com>
resource/csdk/stack/samples/linux/SimpleClientServer/occlient.cpp
resource/csdk/stack/samples/linux/SimpleClientServer/occlient.h
resource/csdk/stack/src/ocstack.c
resource/examples/presenceclient.cpp
resource/include/OCPlatform.h
service/notification-manager/NotificationManager/src/hosting.c
service/soft-sensor-manager/SSMCore/src/SensorProcessor/ResourceFinder.cpp