Replies: 3 comments 7 replies
-
Just pack your entire app in a try/except block and reboot when an exception occurs. You might be able to minimize the memory errors by calling |
Beta Was this translation helpful? Give feedback.
-
This doc is worth reading for techniques to control RAM usage. Rebooting on running out of RAM as above, will work, but it is a hack. If, after optimisation, the app is still too big to fit there is the option to use an ESP32 with SPIRAM. |
Beta Was this translation helpful? Give feedback.
-
Just curious, when you are serving HTTP requests are you opening files (like index.html, style.css, etc.) to send as a reply? This can eat up a lot of memory. I've found that reading in small chunks can help. Something like this:
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am using asyncio on an ESP32 microcontroller and am doing several tasks like my code below.
I am running one coroutine for the web server and other coroutines for monitoring.
I just noticed that my web server stopped receiving requests since I cannot access it anymore randomly.
Some of the errors that I am encountering are the following.
Is there a way in my code to catch these errors and restart my coroutines or hard reset my device when these error occurs? Thanks
Beta Was this translation helpful? Give feedback.
All reactions