Search found 1 match

by krishnatejakvs
Thu Nov 29, 2018 11:19 am
Forum: ESP-IDF
Topic: nvs_set_str() causes exception resulting in reboot
Replies: 2
Views: 4985

Re: nvs_set_str() causes exception resulting in reboot

Hi,

esp32 nvs expects string to be zero terminated. add the last character to the string to '\0' like value[lengthofvalue] = '\0';and then call nvs_set_str();

Ps: erase the nvs before starting with above changes

Hope it helps.