Previous page Next page
POST http:/IP-Address:port/device/di/{id}
JSON body:
{"state": "closed"}
where state − opened or closed.
Sample request:
http://127.0.0.1:8080/device/di/0 {"state": "opened"}