Nivis Versa Router 1100 Titan - User Guide
v1.2
Page 40 of 111
3.9.1.1.8.5
Set observation for multiple resources
HTTP PUT query:
http://observe-resources-set-xml
Where query content is an XML file with following format:
<ObservationListSet>
<Resource>
<Value Name=’DeviceIPv6Addr’ Type=’BinHex’>…</Value>
<Value Name=’UriPath’ Type=’String’>…</Value>
<Value Name=’Action’ Type=’String’>…</Value>
</Resource>
<Resource>
<Value Name=’DeviceIPv6Addr’ Type=’BinHex’>…</Value>
<Value Name=’UriPath’ Type=’String’>…</Value>
<Value Name=’Action’ Type=’String’>…</Value>
</Resource>
...
</ObservationListSet>
NOTE
Action - is a string which defines the type of action that HttpCoapProxy should take on the specified resource
(Enable – set as observable, HttpCoapProxy will subscribe for that resource, Disable – unset, HttpCoapProxy will
unsubscribe from observing that resource)
HTTP response :
If XML file is well formed then a 200 "OK" "XML observation list processed" will be sent back to client;
If XML file is not well formed, 400 "Bad Request" response will be retrieved.