Versions Compared

Key

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

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

Tip

{id} - sensor − sensor id (0, 1, 2, 3).


Info
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/diid/0 
{"state": "opened"}