MQTT
Info
For now, there is installed broker mosquitto at mqtt.base48.cz. Only working device are lights at working table. repository
ESP8266 starts and tries to connect to the broker. If that does not happen, blue light is ON. Proper 'way' of using it, is than: "mosquitto_sub -v -t '/info'" to subscrib to info topic. Executing " mosquitto_pub -t '/info/send' -m '1'" to initiate sending of informations.
This outputs something like:
/info pub,button,/workroom/buttons/table,sends char 1 when pressed /info sub,light,/workroom/lights/table_a,Send char of 0 or 1 to turn off or on /info sub,light,/workroom/lights/table_b,Send char of 0 or 1 to turn off or on
TODO:
- logging into mqtt
- keep alive check against device
- upgrade /info topic:
* /info/control, /info/health, /info/description
- send events that light changed into mqtt
- resolved DNS bug on esp8266 in workroom
- make it secure (open now)