Skip to content
This repository has been archived by the owner on Feb 26, 2023. It is now read-only.

REST API Настройки MQTT

Yuriy Afanasiev edited this page Aug 28, 2018 · 2 revisions

Запрос для записи данных

/api19

Параметры

  • on_off 0-off 1-on
  • server_mqtt
  • port
  • username_mqtе
  • password_mqtt
  • name
  • group

Например

/api19?on_off=1&server_mqtt=&port=&username_mqtt=&password_mqtt=&name=switch&group=room1

Ответ

{"status":"1"}

Запрос для чтения данных

/json19

Ответ

{"on_off":"1","server_mqtt":"","port":"","username_mqtt":"","password_mqtt":"","name":"switch","group":"room1","device_level":"/home/room1/socket/sonoff-s20","room_level":"/home/room1/sonoff-s20","house_level":"/home/sonoff-s20"}