Previous page Get info about Server version  Client HTTP API Next page

POST http:/IP-address:port/device/di/0 

with content:

{"state": "closed"}

where

  • port - HttpListener port.
  • 0/1/2/3 - sensor id.
  • state - opened or closed.

Example:

http://127.0.0.1:8080/device/di/0 
{"state": "closed"}
  • No labels