Fix Presence notification issues.
authorSashi Penta <sashi.kumar.penta@intel.com>
Tue, 24 Feb 2015 06:09:08 +0000 (22:09 -0800)
committerPatrick Lankswert <patrick.lankswert@intel.com>
Thu, 5 Mar 2015 20:45:50 +0000 (20:45 +0000)
commitcfc48d24897c67536758b804e1d798d17271ccfc
treef1091e4f81476d20923d7778afcc132df74705c7
parentcffd004aef361df2dfed540eaee9a7ca4ae50a85
Fix Presence notification issues.

* Handle duplicate stop notification on the client side.
* Once StopPresence is called on the server, no more notifications are sent. Fixes IOT-66.
* Correct implementation for sending the presence notification when unbinding.

Change-Id: I112a1ef2cb5c04d847c0c83f5309d67acdc4c1fb
Signed-off-by: Sashi Penta <sashi.kumar.penta@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/402
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Patrick Lankswert <patrick.lankswert@intel.com>
resource/csdk/stack/include/internal/ocstackinternal.h
resource/csdk/stack/src/ocstack.c