You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

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

{id} − id датчика (0, 1, 2, 3).

Примечание

порт − порт HttpListener.

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

{"state": "closed"}

где stateopened или сlosed.

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

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