Commit 46588262 authored by Senthil Kumar G S's avatar Senthil Kumar G S Committed by Uze Choi

[IOT-2895] Make DevConf resource non-observable.

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: default avatarSenthil Kumar G S <senthil.gs@samsung.com>
parent 7ed2b78d
......@@ -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)
......
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