Sample code for MQTT

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
Post Reply
makram
Posts: 13
Joined: Thu Aug 13, 2020 7:14 pm

Sample code for MQTT

Post by makram » Tue Oct 20, 2020 7:58 pm

Hi everyone,
Can anybody here please provide a sample code for mqtt as i'm not able to find one over the internet
PLEASE HELP

THANKS

User avatar
pythoncoder
Posts: 5956
Joined: Fri Jul 18, 2014 8:01 am
Location: UK
Contact:

Re: Sample code for MQTT

Post by pythoncoder » Wed Oct 21, 2020 8:09 am

See examples here and here. Those are for the official MQTT clients.

There is also this unofficial client which is asynchronous and resilient against WiFi outages..
Peter Hinch
Index to my micropython libraries.

makram
Posts: 13
Joined: Thu Aug 13, 2020 7:14 pm

Re: Sample code for MQTT

Post by makram » Wed Oct 21, 2020 9:14 am

Thank you so much

Post Reply