MicroPython - MQTT Publish/Subscribe using ESP32/ESP8266

16K views Jan 30, 2023
publisher-humix

donskytech.com

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/micropython-mqtt-esp32-esp8266/ Code: https://github.com/donskytech/micropython-ESP32-ESP8266/tree/main/mqtt How to test MQTT using MQTTX?: https://www.youtube.com/watch?v=Fhk-x-QD5XQ 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

#Computers & Electronics