[IOT-2895] Make DevConf resource non-observable. 99/23199/2
authorSenthil Kumar G S <senthil.gs@samsung.com>
Tue, 14 Nov 2017 16:36:22 +0000 (22:06 +0530)
committerUze Choi <uzchoi@samsung.com>
Mon, 20 Nov 2017 09:23:52 +0000 (09:23 +0000)
Required to make the successful execution of the CTT test case
which expects observe notification from DevConf.
As DevConf is a read-only resource, it is not possible to update its
properties and hence there can't be any observe notifications.
So this change makes DevConf non-observable.

Change-Id: I8c73865aa995a61729e41063dfa0a74d0bea1400
Signed-off-by: Senthil Kumar G S <senthil.gs@samsung.com>
service/easy-setup/enrollee/src/resourcehandler.c

index f2e821f..2bab1c8 100644 (file)
@@ -340,14 +340,14 @@ OCStackResult initDevConfResource(bool isSecured)
         res = OCCreateResource(&g_ESDevConfResource.handle, OC_RSRVD_ES_RES_TYPE_DEVCONF,
         OC_RSRVD_INTERFACE_DEFAULT,
         OC_RSRVD_ES_URI_DEVCONF, OCEntityHandlerCb,
-        NULL, OC_DISCOVERABLE | OC_OBSERVABLE | OC_SECURE);
+        NULL, OC_DISCOVERABLE | OC_SECURE);
     }
     else
     {
         res = OCCreateResource(&g_ESDevConfResource.handle, OC_RSRVD_ES_RES_TYPE_DEVCONF,
         OC_RSRVD_INTERFACE_DEFAULT,
         OC_RSRVD_ES_URI_DEVCONF, OCEntityHandlerCb,
-        NULL, OC_DISCOVERABLE | OC_OBSERVABLE);
+        NULL, OC_DISCOVERABLE);
     }
 
     if (res != OC_STACK_OK)