Commit 7ed2b78d authored by Senthil Kumar G S's avatar Senthil Kumar G S

[IOT-2899][ES] Notifying collection's observers.

When there is an update in the properties of child resources
(WifiConf, CloudConf) of collection(EasySetup),
a notification should be sent to EasySetup's observers.

Change-Id: I9d4d4ab0b0f7e21995d29376819e014c90408d9c
Signed-off-by: default avatarSenthil Kumar G S <senthil.gs@samsung.com>
parent 8148b55f
......@@ -642,7 +642,12 @@ OCEntityHandlerResult updateWiFiConfResource(OCRepPayload* input)
if (OC_STACK_NO_OBSERVERS == OCNotifyAllObservers(g_ESWiFiConfResource.handle, OC_HIGH_QOS))
{
OIC_LOG(DEBUG, ES_RH_TAG, "Enrollee doesn't have any observer.");
OIC_LOG(DEBUG, ES_RH_TAG, "WiFiConf resource doesn't have any observer.");
}
if (OC_STACK_NO_OBSERVERS == OCNotifyAllObservers(g_ESEasySetupResource.handle, OC_HIGH_QOS))
{
OIC_LOG(DEBUG, ES_RH_TAG, "EasySetup resource doesn't have any observer.");
}
ehResult = OC_EH_OK;
......@@ -738,6 +743,11 @@ void updateCoapCloudConfResource(OCRepPayload* input)
OIC_LOG(DEBUG, ES_RH_TAG, "CoapCloudConf resource doesn't have any observer.");
}
if (OC_STACK_NO_OBSERVERS == OCNotifyAllObservers(g_ESEasySetupResource.handle, OC_HIGH_QOS))
{
OIC_LOG(DEBUG, ES_RH_TAG, "EasySetup resource doesn't have any observer.");
}
OICFree(cloudData);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment