Open dhalbert opened 1 year ago
hi @dhalbert . Thank you for opening this issue!
A change in behavior I observe with recent MiniMQTT is that the client.loop()
:
https://github.com/adafruit/Adafruit_CircuitPython_MiniMQTT/blob/b707805400fca9b2d49373c72bbf510edda6c209/adafruit_minimqtt/adafruit_minimqtt.py#L837
is now blocking until "something happened". In the past, calling it would return right away if there was no work for it to do.
In my experiments, my work around is to provide a small timeout parameter like this:
What do you think? In my humble opinion, timeout=0
should remain the non-blocking API it used to be, so other things could also happen in the main loop of the circuit python application.
What do you think? In my humble opinion, timeout=0 should remain the non-blocking API it used to be, so other things could also happen in the main loop of the circuit python application.
I think so too, this is proposed within https://github.com/adafruit/Adafruit_CircuitPython_MiniMQTT/issues/142
Why does #127 fix #126? As mentioned by @brentru in https://github.com/adafruit/Adafruit_CircuitPython_MiniMQTT/pull/127#issuecomment-1317271214 and following