On ESP32 development – check your documentation
muscaw.devBTW Micropython has regular file system. If you want some shit be permanently remembered in ESP you just file it.
There was some problem with the filesystem getting corrupted, but I dont remember how it was. It may have been that I just wrote same file again and again without closing them handles.
Now I remembered the filesystem issue. It happened when the Watchdog killed the process, while it was writing valuable data in the file. When this happened often enough the filesystem got hopelessly messed up.