Versions Compared

Key

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

POST httpPOST http:/IP-адрес:порт/device/di/{id}

info
Tip
  • {id}
- id
  • id датчика (0, 1, 2, 3).
titleПримечание
  • порт
-
  • порт HttpListener.

Тело запроса: 

Code Block
{"state": "closed"}

где state - opened или сlosed.

Пример запроса:

Code Block
http://127.0.0.1:8080/device/di/0 
{"state": "opened"}

...