Page 1 of 1

microPython MQTT Callback implementation

Posted: Thu Feb 10, 2022 4:45 pm
by MMliam
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?

Re: microPython MQTT Callback implementation

Posted: Fri Feb 11, 2022 12:25 am
by MMliam
I've found the answer to my own question regarding callback implementation.

Thanks anyway, MM