NVS data corrupted after updating code

rwel59
Posts: 97
Joined: Thu Oct 12, 2017 3:32 pm

NVS data corrupted after updating code

Postby rwel59 » Thu Mar 29, 2018 12:17 am

I am saving wifi configuration data in nvs.

After I updated the code and re-flashed, the program retrieves stored ssid/password. The parameters are stored in std::string. There are no errors on retrieval, the strings retrieved are the proper lengths but they contain all null characters.

I've done this process hundreds of times (lots of code changes) and 99% of the time I have no issues retrieving saved parameters but I have seen the same issue a few times. Am I overwriting nvs data? Is there something I should be doing so that I won't overwrite?

Who is online

Users browsing this forum: No registered users and 88 guests