Closed issalig closed 2 years ago
For some unknown reason, after 50 days without resetting I close this issue.
After a lot of analysis I may have solved the problem. After some minutes without connecting when a new connection entered SPIFFS tried to get the page but it took a lot and esp_yield crash.
I have replecaed SPIFFS for LittleFS and now it works ok. Hope it is definitely the solution
LittleFS also hangs but it looks like gzipping the files can be a solution https://github.com/me-no-dev/ESPAsyncWebServer/issues/825
Also it is worth to mention that max opened files is 5
I am gonna test it for some days and we will see if I can definetely get rid of this bug.
It seems that SPIFFS was not the problem, it was a silly error and I commented websocket.loop by error some months ago.
Thanks to @cmc88 for finding the bug.
I am still getting unexpected crashes. For now I will force a reset every 1/2 hours to clean everything
Sometimes, ESP8266 resets. It can stay for some days wo resetting or just every few minutes. I guess it is something related to ArduinoJSON but not sure. It does not appear to be a memory leak. Other theory is that there are power problems but it is connected to a 5V 2A, so it should be like this.