Table 5.
An example of the SetUmb API request to turn the umbrella light on.
| SetUmb API Request | |
|---|---|
| Method | POST |
| URL | http://<ip_address>/mobius/DID_Umb/SetUmb |
| Header | Accept: application/xml |
| Content-Type: application/vnd.onem2m-res+xml; ty=4 | |
| X-M2M-RI: 1234 (request id) | |
| X-M2M-Origin: origin_user (requester id) | |
| Body | <?xml version="1.0" encoding="UTF-8" encoding="UTF-8"?> |
| <m2m:cin | |
| xmlns:m2m="http://www.onem2m.org/xml/protocols" | |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | |
| <cnf>boolean</cnf> | |
| <con>true</con> | |
| </m2m:cin> | |