From 69be748773e4af6ab670c671e22156326bfff08b Mon Sep 17 00:00:00 2001 From: Sudarshan Prasad Date: Thu, 21 Aug 2014 22:13:26 -0700 Subject: [PATCH] Fix for missing data in the observe notification. JSON response was not built correctly. Change-Id: Idc7043228119854da497591cc468f95a6af38516 --- csdk/stack/src/ocobserve.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/csdk/stack/src/ocobserve.c b/csdk/stack/src/ocobserve.c index db373566f..a72ae29c5 100644 --- a/csdk/stack/src/ocobserve.c +++ b/csdk/stack/src/ocobserve.c @@ -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; -- 2.34.1