pycom / pycom-libraries

MicroPython libraries and examples that work out of the box on Pycom's IoT modules
330 stars 379 forks source link

occasional error with MQTT_CLIENT.check_msg() as shown in example. Give OSError(-80,) #125

Open davis-c opened 4 years ago

davis-c commented 4 years ago

(Hi! 👋 Thanks for reporting an issue! Please make sure you click the link above to view the issue guidelines, then fill out the blanks below.)

What are the steps to reproduce this issue?

  1. using method show in this example
  2. https://raw.githubusercontent.com/pycom/pycom-libraries/master/GoogleIOT/flash/main.py
  3. the call to MQTT_CLIENT.check_msg()

What happens?

will sometimes hang. It displays this message

mqtt: OSError(-80,)
[MQTT] mqtt.googleapis.com OK!

What were you expecting to happen?

Either fail gracefully or raise an exception.

Any logs, error output, etc?

(If it’s long, please paste to https://gist.github.com and insert the link here)

Any other comments?

What versions of software are you using?