Page 1 of 1

how can We get count of restarts after flash the firmware

Posted: Fri Jun 14, 2019 9:28 am
by trustmiao
We wish to save settings into nvs, but maintain a factorysettings which can be restored on requirement.
Therefore, we wish we could save the factorysettings(coded in) into nvs on the first reboot after flash, and then read the nvs for settings after every other reboot.

is there a way to make such a mechanism?