Localized IOT – JSON Actor Command Documents

Actor Commands
{“doc_type”:”actor_cmd”,”dstNode”:”ESP8266″,”ch”:0,”cmd”:”on”}
{“doc_type”:”actor_cmd”,”dstNode”:”ESP8266″,”ch”:0,”cmd”:”off”}
{“doc_type”:”actor_cmd”,”dstNode”:”ESP8266″,”ch”:0,”cmd”:”update”,”value”:0}

Where ch is the IO channel number
cmd : on – Turns on channel – digital on/off
Update – Update Channel with value – anaglog pwm output
value – 0 – 100 the pwm value

*Update Actor Config – Channel Directions
{“doc_type”:”actor_cmd”,”dstNode”:”ESP8266″,”ch”:0,”cmd”:”udir”,”value”:”IN”}

*Update Actor Config – Input Read Time
{“doc_type”:”actor_cmd”,”dstNode”:”ESP8266″,”cmd”:”ureadt”,”value”:50}

*Update Actor Config – Actor outbox
{“doc_type”:”actor_cmd”,”dstNode”:”ESP8266″,”cmd”:”uaoutbox”,”value”:”new”}