POST http:/IP-address:port/device/di/{id}
{id} - sensor id (0, 1, 2, 3).
port - port dla HttpListener.
JSON body:
{"state": "closed"}
gdzie state - opened lub closed.
Przykładowe zapytanie:
http://127.0.0.1:8080/device/di/0 {"state": "opened"}