Localized IOT – JSON Node Documents

Node Online – Published Message
*startup – published when node starts
{“doc_type”:”node”,”node_name”:”ESP8266″,”chp_id”:”2286510″,”data”:”startup”}

*reconnect – published when node reconnects to mqtt or network
{“doc_type”:”node”,”node_name”:”ESP8266″,”chp_id”:”2286510″,”data”:”reconnect”}

*isOnline – reply to node command – isAlive
Used for Heartbeat
{“doc_type”:”node”,”node_name”:”ESP8266″,”chp_id”:”2286510″,”data”:”isOnline”}

node_name will be the hostname of the node

chp_id will match the chip id of the device