Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

POST httpPOST http:/IP-address:port/device/di/{id}

info
Tip
  • {id}
- sensor
  • − sensor id (0, 1, 2, 3).
titleNote
  • 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/di/0 
{"state": "opened"}

...