MQTT Broker:



 mosquitto_pub -h -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: #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