From 08a41d6c61915072af578ac7cccb01c3641f84d4 Mon Sep 17 00:00:00 2001 From: Joseph Morrow Date: Mon, 14 Dec 2015 22:11:36 -0800 Subject: [PATCH] Make sure the Platform Resource and Device Resource have 2 interfaces. The /oic/d and /oic/p resources must have oic.if.r and oic.if.baseline interfaces specified. This is also for IOT-874. Ordering as follows. - oic.if.baseline - oic.if.r Change-Id: Ia6a666c03e954634d4589c2bbe8a3a4d72ad8a86 Signed-off-by: Joseph Morrow Reviewed-on: https://gerrit.iotivity.org/gerrit/4607 Reviewed-by: Uze Choi Tested-by: Uze Choi --- resource/csdk/stack/src/ocstack.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/resource/csdk/stack/src/ocstack.c b/resource/csdk/stack/src/ocstack.c index 340657de98..24486debc7 100755 --- a/resource/csdk/stack/src/ocstack.c +++ b/resource/csdk/stack/src/ocstack.c @@ -3743,6 +3743,11 @@ OCStackResult initResources() NULL, NULL, OC_DISCOVERABLE); + if(result == OC_STACK_OK) + { + result = BindResourceInterfaceToResource((OCResource *)deviceResource, + OC_RSRVD_INTERFACE_READ); + } } if(result == OC_STACK_OK) @@ -3754,6 +3759,11 @@ OCStackResult initResources() NULL, NULL, OC_DISCOVERABLE); + if(result == OC_STACK_OK) + { + result = BindResourceInterfaceToResource((OCResource *)platformResource, + OC_RSRVD_INTERFACE_READ); + } } return result; -- GitLab