MQTT: Difference between revisions

From base48
imported>Squirrel
No edit summary
imported>Squirrel
No edit summary
Line 18: Line 18:


TODO:
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
* resolved DNS bug on esp8266 in workroom
* make it secure (open now)
* make it secure (open now)

Revision as of 20:43, 10 January 2017

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)