MQTT+ ASYNC programming

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
Post Reply
lbayo
Posts: 24
Joined: Tue Mar 16, 2021 2:10 pm

MQTT+ ASYNC programming

Post by lbayo » Wed Apr 28, 2021 11:01 am

Hi,

Following the wise advice of "pythoncoder" I have modified my software to use the asyncio module instead thread. I also use the MQTT protocol through the umqttsimple library and I have some problems, such as for example that I can publish but I cannot receive (subscribe).
Should I use a different library or is it just that I am using it wrong because I'm beginner?

Thanks

kevinkk525
Posts: 969
Joined: Sat Feb 03, 2018 7:02 pm

Re: MQTT+ ASYNC programming

Post by kevinkk525 » Wed Apr 28, 2021 11:21 am

If you're already using uasyncio then you should use the async mqtt module from @pythoncoder https://github.com/peterhinch/micropython-mqtt
Kevin Köck
Micropython Smarthome Firmware (with Home-Assistant integration): https://github.com/kevinkk525/pysmartnode

Post Reply