microPython MQTT Callback implementation

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 Callback implementation

Post by MMliam » Thu Feb 10, 2022 4:45 pm

I've created a simple microPython client that publishes a message to a topic; the subscribing client acknowledges the receipt of the message. The acknowledgement is processed by the uPy client.

I'm curious as to how the Callback function in microPython functions; does is use interrupts, or is there a built-in loop in the publish method that waits for a callback (if set) after it sends the message?

MMliam
Posts: 121
Joined: Mon May 07, 2018 1:08 pm

Re: microPython MQTT Callback implementation

Post by MMliam » Fri Feb 11, 2022 12:25 am

I've found the answer to my own question regarding callback implementation.

Thanks anyway, MM

Post Reply