From a8923c9b72fe42a954a7cb98b9f72d25dfffd70c Mon Sep 17 00:00:00 2001 From: Mandeep Shetty Date: Thu, 24 Sep 2015 15:15:24 -0700 Subject: [PATCH] Increase delay in ocserver.cpp sample to avoid missed notifications. This fixes IOT-726. The sever started sending out presence notifications too quickly causing some notifications to be missed. Increased delay before notifications are sent out to make it convenient for TE. Change-Id: Ia6c92992f1000119a8f4dccde1de6bae4abeef5a Signed-off-by: Mandeep Shetty Reviewed-on: https://gerrit.iotivity.org/gerrit/3061 Reviewed-by: Mark Tung Tested-by: jenkins-iotivity Reviewed-by: Patrick Lankswert --- resource/csdk/stack/samples/tizen/SimpleClientServer/ocserver.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resource/csdk/stack/samples/tizen/SimpleClientServer/ocserver.cpp b/resource/csdk/stack/samples/tizen/SimpleClientServer/ocserver.cpp index 944adc2..c5af603 100644 --- a/resource/csdk/stack/samples/tizen/SimpleClientServer/ocserver.cpp +++ b/resource/csdk/stack/samples/tizen/SimpleClientServer/ocserver.cpp @@ -712,7 +712,7 @@ void *ChangeLightRepresentation (void *param) #ifdef WITH_PRESENCE void *presenceNotificationGenerator(void *param) { - sleep(10); + sleep(20); (void)param; OCDoHandle presenceNotificationHandles[numPresenceResources]; OCStackResult res = OC_STACK_OK; @@ -728,7 +728,7 @@ void *presenceNotificationGenerator(void *param) { if(res == OC_STACK_OK) { - sleep(1); + sleep(2); res = OCCreateResource(&presenceNotificationHandles[i], presenceNotificationResources.at(i).c_str(), OC_RSRVD_INTERFACE_DEFAULT, -- 2.7.4