microPython MQTT check_msg()

All ESP8266 boards running MicroPython.
Official boards are the Adafruit Huzzah and Feather boards.
Target audience: MicroPython users with an ESP8266 board.
Post Reply
MMliam
Posts: 121
Joined: Mon May 07, 2018 1:08 pm

microPython MQTT check_msg()

Post by MMliam » Sat Feb 12, 2022 4:29 pm

For a client to check for messages, a call-back function is required, and client.check_msg() must be used in a loop. It appears check_msg() can provide a return of "NONE" if there are no messages.

What does check_msg() return if there are messages?

Post Reply