Hi,

I am confused since I failed to understand how to find the connection
between the "resources" and the "devices".

To my best knowledge of the OCF spec:

   - Devices must have unique identifiers set by manufacturers ("di"
   attribute value).
   - Devices can have multiple resources. For example, Smart Home spec says
   "thermostat" device type must contain 2 "temperature" resources.
   - I am not aware of any requirement for a unique identifier for a
   resource.

So I would expect IoTivity to expose a hierarchy between devices and
resources.

My "dream logic":


   - First, the app finds the devices and identify them using the unique ID
   (assuming the app logic needs to "remember" something about the devices,
   and not just find them).
   - Then, find the respective resources of the devices, so the app can
   control the device.


Unfortunately, failed to understand from the samples how it can be done.

Looking in the Android code:
Resource discovery is done via OcPlatform.findResource(),
Device discovery is done via OcPlatform.getDeviceInfo().


How it can be accomplished?



Thanks in advance,




Max (Tekoia Ltd.)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20160627/3fc089ef/attachment.html>

Reply via email to