MQTT

MQTT Broker:

mosquitto

Commands:

 mosquitto_pub -h 10.0.0.10 -t SENSOR3/+ -m '123' -d
 

ESPEasy trigger relay:

mosquitto_pub -t <devicename>/GPIO/2 -m 0                      #on
mosquitto_pub -t <devicename>/GPIO/2 -m 1                      #off

Gosund (switch power1):

mosquitto_pub -t <devicename>/cmnd/Power1 -m OFF
mosquitto_pub -t <devicename>/cmnd/Power1 -m ON

To send a message to a mqtt server:

https://diy.waziup.io/sensors/publish_using_MQTT/publish_using_MQTT.html

https://github.com/plapointe6/EspMQTTClient #authentication example!

iot/mqtt.txt · Last modified: 2020/11/10 20:31 by tmade
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 4.0 International
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki