Go to documentation repository
Page History
POST httpPOST http:/IP-address:port/device/diid/{id}
Tip |
---|
{id} - sensor − sensor id (0, 1, 2, 3). |
Info | ||
---|---|---|
| ||
port - − HttpListener port. |
JSON body:
Code Block |
---|
{"state": "closed"} |
where state - − opened or closed.
Sample request:
Code Block |
---|
http://127.0.0.1:8080/device/diid/0 {"state": "opened"} |
Overview
Content Tools