forked from sm6yvr/liam
-
Notifications
You must be signed in to change notification settings - Fork 0
Ola-Palm edited this page May 15, 2018
·
3 revisions
#API MQTT
#WORK IN Progress.
LIAM listen to /devicename/command/# could be set or get
message structure.
{ "set-get":"set/get", "command":"cmd", // if command is get, it stops here. "value": "value" "token" : "value" }
ex.
{ "set-get":"set", "command":"Battery", "type": "ION", "full" : 1300, "goHomeLevel": 1100, "version" : 1.0, "token": "1235234" }
response is sent on /devicename/command/repsonse
{ "token":"1235234", "command":"Battery", "response": true/false }