adafruit / Adafruit_CircuitPython_MiniMQTT

MQTT Client Library for CircuitPython
Other
79 stars 50 forks source link

Don't retry when MQTT response is unauthorized #213

Closed justmobilize closed 6 months ago

justmobilize commented 6 months ago

Update connection code to break out of the retry look when getting either a Incorrect username/password or Unauthorized response.

Noticed in #211, although doesn't fix the original post

Tested on a UM FeatherS3

justmobilize commented 6 months ago

@brentru willing to take a look?

dhalbert commented 6 months ago

I defer to @brentru on this.

justmobilize commented 6 months ago

@dhalbert So this shouldn't really solve anything other then getting a better error, and making it easier to debug. Unless the error they get is really retriable (which I asked above)