Commit 08a41d6c authored by Joseph Morrow's avatar Joseph Morrow Committed by Uze Choi

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: default avatarJoseph Morrow <joseph.l.morrow@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/4607Reviewed-by: default avatarUze Choi <uzchoi@samsung.com>
Tested-by: default avatarUze Choi <uzchoi@samsung.com>
parent 84e5f48d
......@@ -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;
......
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