If I know the URI of a device can I create an OCResource without calling
findResouce?
For example
I call
OCPlatform::findResource("", "/oic/res?rt=oic.d.light", CT_DEFAULT,
myCallbackHandler);
I then get a response with a light resource that contains links to other
resources:
Example:
[{
"rt": "oic.d.light",
"di": "0685B960-736F-46F7-BEC0-9E6CBD61ADC1",
"links":
[
{ "href": "/light/switch",
"rel": "contained",
"rt": "oic.r.switch.binary",
"if": "oic.if.a"},
{ "href": "/light/brightness",
"rel": "contained",
"rt": "oic.r.light.brightness",
"if": "oic.if.a"}
]
}]
I want to interact with the oic.r.switch.binary and the oic.r.light.brightness
I still have OCResource for the found oic.d.light is it possible to create a
new OCResource for the oic.r.switch.binary and oic.r.light.brightness without
calling find for each of the contained resource types?
George
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20160602/730163fe/attachment.html>