I use nvs_set_i32(...) and then nvs_get_i32(...) and the result is always correct.
I'm not using nvs_commit()
Suppose the data is gone after a power cycle.
Where is the data being stored then?
Because the data is being stored somewhere
Many thanks for your help!
I'm writing to NVS without commiting the changes and works fine. Why?
-
- Posts: 9739
- Joined: Thu Nov 26, 2015 4:08 am
Re: I'm writing to NVS without commiting the changes and works fine. Why?
It's cached in RAM, in all likelihood. It's not guaranteed the writes make it to flash until you call nvs_commit().
Who is online
Users browsing this forum: Baidu [Spider] and 87 guests