MQTT

From base48
Revision as of 19:47, 3 January 2017 by imported>Squirrel (Created page with " == Info == For now, there is installed broker mosquitto at mqtt.base48.cz. Only working device are lights at working table. [https://github.com/hackerspace/automation/ repos...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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:

  • resolved DNS bug on esp8266 in workroom
  • make it secure (open now)