Localized IOT – JSON Device Configuration Document

JSON Doucment Type – d_config = device configuration. A local configuration file on the Node that controls the wifi network, connection information, along with MQTT server, user, and password.

Full Document

{“doc_type”:”d_config”,”node_name”:”ESP8266″,”node_type”:”Sensor”,”chp_id”:0,”wifi_sid”:”wifisid”,”wifi_pwd”:”wifipwd”,”mqtt_broker”:”mqttserver.vis.iot”,”mqtt_user”:”test”,”mqtt_pwd”:”test”,”mqtt_nOutBox”:”Node_Outbox”,”mqtt_nInBox”:”Node_Inbox”,”mqtt_nLog”:”Node_Logs”,”debug_level”:1,”log_level”:1,”hbeat”:30}

node_name – should be unique for each device
node_type – type of node
chp_id – chip id – can set but chip overrides it.
wifi_sid
wifi_pwd
mqtt_broker – host name of the mqtt server
mqtt_user
mqtt_pwd
mqtt_nOutBox – Node Publish Channel for Outgoing
mqtt_nInBox – Node subscribed to mailbox – incoming
mqtt_nLog – Node Log Outbox
debug_level – debug level
log_level – log level
hbeat – heatbeat value, 0 = disable, in seconds