MicroPython - MQTT Publish/Subscribe using ESP32/ESP8266

Опубликовано: 23 Февраль 2026
на канале: DonskyTech
4,743
51

This post will show you how to connect, published, and subscribe to MQTT topics with your broker using MicroPython and an ESP32/ESP8266 board. We will be using the library umqttsimple in communicating with our Mosquitto MQTT broker.

WriteUp:
https://www.donskytech.com/micropytho...

Code:
https://github.com/donskytech/micropy...

How to test MQTT using MQTTX?:
   • How to test MQTT using MQTTX?  

Contents of the Video:
0:00 - Intro
0:51 - umqttsimple library in ESP32
1:31 - Project files
2:27 - MQTT Subscribe Demo
5:30 - MQTT Publish Demo
7:24 - DonskyTech Intro Plug
7:36 - MQTT In Nutshell
9:10 - boot.py
9:31 - subscriber.py
12:29 - publisher.py
13:45 - publisher.py

If you like my post or videos then please consider subscribing to my channels and sharing them with your friends:

Website: https://www.donskytech.com
Youtube:    / donskytech  
Facebook:   / donskytech  
Twitter:   / donskytech  

If you are generous and think I have helped you, please consider buying me a coffee. 🙂
Buy Me a Coffee:
https://buymeacoffee.com/donskytech

#mqtt
#mosquitto
#micropython
#esp32
#esp8266
#umqttsimple
#mqttx