Příklady pro zápis hodnot do EMS-ESP:
Telnet: call analogsensor relais1 on
Mqtt: Topic analogsensor/relais1
, Payload: on
(or json {"value":"on"}
)
Webapi: http://emsesp/api/analogsensor/relais1
, Body: {"value":"on"}
Scheduler syntax is Command:boiler/relais1
Value:on
curl http://192.168.2.11/api/analogsensor/relais1 \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ8.eyJ1c2VybmFtZSI6ImFkbWluIiwiYWRtaW4iOnRydWUsInZlcnNpb24iOiIzLjEuMWIwIn0.qeGT53Aom4rDYeIT1Pr4BSMdeWyf4_zN9ue2c51ZnM0' \
-d '{ "value":"on"}'
Žádné komentáře:
Okomentovat