I want to store a variable on a regular basis so it is not lost after power loss.
The easiest way is to store the complete state of the software with save(). However, this stores everything and I'm afraid that it breaks the flash if used too often.
How often can I write into the flash? Would be every hour too much?
Is there a better solution?
The warnings at the flash documentation scare me :-)
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Hello,
I want to store a variable on a regular basis so it is not lost after power loss.
The easiest way is to store the complete state of the software with save(). However, this stores everything and I'm afraid that it breaks the flash if used too often.
How often can I write into the flash? Would be every hour too much?
Is there a better solution?
The warnings at the flash documentation scare me :-)
Regards
Sven