Documentation for C-Werk 2.0.

Previous page Macros  Get current web-client user Next page

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

  • {id} − sensor id (0, 1, 2, 3).
  • port − HttpListener port.

JSON body:

{"state": "closed"}

where stateopened or closed.

Sample request:

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