Adafruit_CircuitPython_MiniMQTT
Adafruit_CircuitPython_MiniMQTT copied to clipboard
behavior change, now I get timeouts on ping
Hi, I've got a v7 running on a red featherwing, loaded with minimqtt from the v7 bundle around december 2022 and a v8 running on a black featherwing, loaded with minimqtt from the v8 bundle
The v7 with an earlier version of minimqtt runs w/o ping timeouts if I'm waiting and doing nothing
The v8 does this, after a short period of time:
File "code.py", line 1776, in
The problem I see is that the exception, in response to a ping should be handled in the ping, which has its own timeout handling code, which is never reached but even if it were, would also raise an unhandled exception if it did. Or in the loop that contains the ping and return an error code for the app to receive and figure out what to do.
questions:
- why does the earlier version of minimqtt not have this problem?
- in any case, why aren't ping timeout exceptions handled and rather than return an exception thatis, return an error code that can be handled as to whether the app wants to restart or not, and be accurate in that the problem is a ping timeout rather than an "expected 1 byte(s)" timeout