Fix for missing data in the observe notification. JSON response was not built correctly.
authorSudarshan Prasad <sudarshan.prasad@intel.com>
Fri, 22 Aug 2014 05:13:26 +0000 (22:13 -0700)
committerSudarshan Prasad <sudarshan.prasad@intel.com>
Fri, 22 Aug 2014 05:13:26 +0000 (22:13 -0700)
Change-Id: Idc7043228119854da497591cc468f95a6af38516

csdk/stack/src/ocobserve.c

index db373566f6bf853cdda35bd3fa26cb963cc02d45..a72ae29c5f6f801d17c87e427cfa4117ce6369b0 100644 (file)
@@ -180,7 +180,8 @@ OCStackResult SendObserverNotification (OCResource *resPtr)
 
             // Even if entity handler for a resource is not successful
             // we continue calling entity handler for other resources
-            ehRet = resPtr->entityHandler (OC_REQUEST_FLAG, entityHandlerReq);
+            //ehRet = resPtr->entityHandler (OC_REQUEST_FLAG, entityHandlerReq);
+            ehRet = BuildObsJSONResponse((OCResource *) resPtr, entityHandlerReq);
             if (OC_EH_OK == ehRet)
             {
                 stackRet = OC_STACK_OK;