Project always freezing after a day or so #13383
acidkewpie
started this conversation in
General
Replies: 1 comment 2 replies
-
I struggled for about a year to keep a generic ESP32 running 24/7. Disabling uMQTT ... extend that approach by disabling other things. Also, throw try/except blocks everywhere and in the except block log any errors to a file on flash. I also changed platforms to a ESP32 SPIRAM variant. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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'm building a little LED clock project with a captive WiFi portal borrowed from a blog I found, with MQTT support also added. I have a BME280 sensor and a simple LDR conencted, along with a couple of neopixel outputs.
I'm running my prototype on a Lolin / Weimos ESP32 S2 mini, and it just freezes after typically 36 hours of usage. But there's no pattern to it at all as far as I can tell. It output a status to the console in some form every second (so usually just a dot for a "tick", and I see that it just stops outputting anything at all. There's no error reported in repl, and it can be at 37 seconds into any given minute, 11 seconds, it doesn't matter.... Not on the boundary of anything, not in line with any schedule being fired off at all. As such, I cant' see how it would relate to anything actually in my code..? So whilst feeling clueless I feel like I'm left doubting MicroPython itself?
I'm running the 1.21 firmware, the portal is taken from here https://ansonvandoren.com/posts/esp8266-captive-web-portal-part-1/, the uMQTT "Robust" library https://github.com/micropython/micropython-lib but it still acts the same when I disable it. So I'm kinda stumped how to get more information about what's going on. The LED's just freeze, and nothing ever happens again, either visually or from sending the MQTT data. repl doesn't respond... just nothing until I press the ES32's reset button. So where do I go from here, as I'd really rather stay in a python world.
I don't think there's any use showing my ugly, code, but these are the pins I'm using if it may be relevant:
Beta Was this translation helpful? Give feedback.
All reactions