How to publish from Micropython?


#1

am newb in mqtt. I do not know how to publish a message to this broker from micropython.
can you help? thx


#2

Hello,

Does micropython have httplib?

In such case, take a look at the following link:

Also, you can always connect to MyQtthub.com using MQTT protocols (its the
default). A quick search reveals several resources on how to this.

At the following link shows how to connect using MicroPython to a MQTT broker using
umqtt.simple:

https://randomnerdtutorials.com/micropython-mqtt-esp32-esp8266/

Here you have reference to that project too:

Best Regards,