adafruit / Adafruit_CircuitPython_MiniMQTT

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

Add `timeout` value. #205

Closed LelandSindt closed 4 months ago

LelandSindt commented 4 months ago

Add timeout value to avoid MMQTTException: loop timeout (0) must be bigger than socket timeout (1)) error.

LelandSindt commented 4 months ago

After upgrading to Circuit Python 8.x I found that mqtt_client.loop() would throw MMQTTException: loop timeout (0) must be bigger than socket timeout (1)) I had to set timeout=1 to avoid the error.

https://github.com/LelandSindt/analoguEnvoy/blob/main/circutpythonMQTT/code.py#L80