Skip to content
Discussion options

You must be logged in to vote

I'm assuming you need long term storage i.e. across reboots, and that this is for an app. If you need storage just while the app is closed, then you can implement a small controller that stores the value in memory. Maybe #2141 would be useful as a reference?

You can store data in your own file on the flash. Have a look at what the alarm app does for example (alarm has a controller as well as the alarm runs in the background and therefore needs some storage in memory too, but if you don't need to run in the background no controller is needed). Try to avoid modifying the file too often, as the flash memory does not have infinite durability and the filesystem can cause quite a bit of read/wr…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@owenfromcanada
Comment options

@mark9064
Comment options

@owenfromcanada
Comment options

Answer selected by owenfromcanada
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants