|
Re: Restful web services interaction with OM2M platform [message #1703550 is a reply to message #1703195] |
Mon, 03 August 2015 01:38 |
Mahdi Ben Alaya Messages: 229 Registered: November 2013 |
Senior Member |
|
|
Hello Ray,
You can use stand alone web services that interact with the platform as DA, GA or NA using HTTP or CoAP protocols.
Container resources enable to structure data inside an application:
- DESCRIPTION resource contains the description of the device: attribute (manufacturer, location, etc.) and operations (name, method, URI, etc.). This resource is useful for discovery by exposing the device meta-data to users and inform them about the available operations and how to trigger them.
Example:
<obj>
<str name="location" val="Home"/>
<op name="getValue" href="gscl/applications/MY_SENSOR/containers/DATA/contentInstances/latest/content" is="retrieve"/>
</obj>
- DATA resource contains the data generated by the device such as measurements e.g. temperature values, etc. Any user can get the entire collection of measurements; get the latest, the oldest or one specific data; or be notified only when new events happen.
Example:
<obj>
<int name="data" val="27"/>
<int name="unit" val="celsius"/>
</obj>
You can also add your own resources according to your scenario and requirements.
Thank you for your comment.
Best regards,
Mahdi
[Updated on: Tue, 04 August 2015 14:12] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.04658 seconds