-
Notifications
You must be signed in to change notification settings - Fork 74
failure to fetch data results in looping failures #5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
What if you add the reset between the print and continue lines? |
that is what I have done.
|
adding it on every get was just a test -- not meant for a fix |
Oh I get it now. Thanks. I just meant test the modification in the library itself to see if that does fix it. |
I'm not sure we need to force the RESET in the library -- it may be better to let the user decide how to respond.= as in the example. |
OK -- after running fo over 12 hours, it did catch an error and the RESET was successful
Should I go ahead and add this to the examples that need it or do you want to implement it differently? |
I want to implement it a little differently. I’ll go ahead and get that changed this morning. Thanks for finding this. |
hiya i'd like the wifimanager to hard reset on communication failure at the top of the connection-check section so in theory the exception is caught, it goes to the next loop where it tries to fetch data, and hard-resets there |
It was not clear to me if the communication failure I was seeing resulted in a loss of connection or not. It just kept retrying the get and was failing the get_host_by_name. Issuing the reset after the failed get attempt forced it to reconnect at the next loop but it was done outside the wifi-manager. |
I created a PR that will hopefully address this. |
While running the esp32spi_cheerlights.py example I have occasionally found it stuck in a loop of failures at https://github.com/adafruit/Adafruit_CircuitPython_ESP32SPI/blob/master/examples/esp32spi_cheerlights.py#L49
It typically runs for several hours before this failure occurs.
A simple workaround appears to be to add an
when this error is detected - I am running a long test to see if I can catch the error and verify that it recovers. adding the esp.reset() before every "get" as a test seemed to work OK.
If this works - I'll put in PR's for the examples
The text was updated successfully, but these errors were encountered: