Use of the retargeting concept in the oneM2M version [message #1730968] |
Sun, 01 May 2016 03:36  |
Eclipse User |
|
|
|
I would like to perform specific operations on a device using the retargeting concept. For the 0.8 platform version, an example was already provided here.
Could you possible also provide an example for the oneM2M version of the platform?
I have a device with an ip of 192.168.0.118:80 which toggles its state using the /toggle URI.
I tried using it by specifying the poa element while creating the device:
<om2m:ae xmlns:om2m="http://www.onem2m.org/xml/protocols">
<api>app-sensor</api>
<lbl>Type/sensor Category/temperature Location/home</lbl>
<rr>true</rr>
<poa>http://192.168.0.118:80</poa>
</om2m:ae>
And modified the uri od the specific operation in the DESCRIPTOR contentInstance:
<om2m:cin xmlns:om2m="http://www.onem2m.org/xml/protocols">
<cnf>message</cnf>
<con>
<obj>
<str name="type" val="Temperature_Sensor"/>
<str name="location" val="Home"/>
<str name="appId" val="MY_SENSOR"/>
<op name="Toggle" href="/in-cse/MY_SENSOR/toggle"
in="obix:Nil" out="obix:Nil" is="execute"/>
</obj>
</con>
</om2m:cin>
Upon clicking on the button in the web interface this returns an error. Could you, please, explain what I'm missing?
[Updated on: Thu, 05 May 2016 14:26] by Moderator
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.28687 seconds