MQTT: Difference between revisions

From base48
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...")
 
imported>Squirrel
No edit summary
Line 11: Line 11:
This outputs something like:
This outputs something like:


<nowiki>
/info pub,button,/workroom/buttons/table,sends char 1 when pressed
/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_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
/info sub,light,/workroom/lights/table_b,Send char of 0 or 1 to turn off or on
 
</nowiki>


TODO:
TODO:
* 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 19:48, 3 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:

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