MMQTTException: PINGRESP not returned

adafruit.io help, discussions and more!

Moderators: adafruit_support_bill, adafruit

Forum rules
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.
Post Reply
User avatar
michaelmcs
 
Posts: 17
Joined: Wed Aug 26, 2020 9:10 pm

MMQTTException: PINGRESP not returned

Post by michaelmcs »

I am trying to 'publish' data to Adafruit.io and occasionally I get
MMQTTException: PINGRESP not returned
after a call to mqtt_client.loop(), which halts the program.

I haven't been able to find the documentation that describes what that loop() call actually does.

I'm assuming that the
PINGRESP not returned
just means that Adafruit.io was temporarily unavailable. I could probably put the loop() call within a try/except/else block as it isn't critical that every datapoint is logged, but I sure would like to know what is happening.

Thanks

User avatar
mikeysklar
 
Posts: 8137
Joined: Mon Aug 01, 2016 8:10 pm

Re: MMQTTException: PINGRESP not returned

Post by mikeysklar »

Without knowing your hardware setup I’m just guessing that this might be the issue:

https://github.com/adafruit/Adafruit_Ci ... /issues/66

Which appears to be resolved in a recent commit here:

https://github.com/adafruit/Adafruit_Ci ... TT/pull/69

Post Reply
Forum rules
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.

Return to “Internet of Things: Adafruit IO”