MQTT loop "Time out waiting for SPI char" error

CircuitPython on hardware including Adafruit's boards, and CircuitPython libraries using Blinka on host computers.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
bonemender
 
Posts: 8
Joined: Tue Nov 30, 2021 10:37 pm

MQTT loop "Time out waiting for SPI char" error

Post by bonemender »

I'm on the pyPortal and updated CircuitPython to the latest version.

In my while True loop, I am calling the mqtt nonblacking "loop()". It is throwing sporadic "Timed out waiting for SPI char" errors.

Any ideas on what is causing this?

Thanks.

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

Re: MQTT loop "Time out waiting for SPI char" error

Post by mikeysklar »

Did you update your libraries to the latest release as well?

I see that the Adafruit_CircuitPython_ESP32SPI library had added some code earlier this year to do retries when timeouts occur. It looks like your code is doing the right thing and continuously reconnecting when a timeout occurs.

https://github.com/adafruit/Adafruit_Ci ... I/pull/132

Locked
Please be positive and constructive with your questions and comments.

Return to “Adafruit CircuitPython”