Page 1 of 1

EEPROM

Posted: Sun Mar 19, 2017 4:38 pm
by PeWosT
Hi, I want to save the ssid and the password of the network. There is a partition that I can use like the EEPROM of arduino? Or I have to use an external flash to save it?

Thanks in advance

Re: EEPROM

Posted: Sun Mar 19, 2017 4:52 pm
by ESP_krzychb
Hi PeWosT,

Check NVS (Non-Volatile Storage) https://github.com/espressif/esp-idf/tr ... s_rw_value

Re: EEPROM

Posted: Sun Mar 19, 2017 6:16 pm
by PeWosT
Hi krzychb, thank you for your response. Is it compatible with arduino IDE?

Re: EEPROM

Posted: Sun Mar 19, 2017 7:34 pm
by ESP_krzychb
@PeWosT,

Sorry, I did not notice you have been posting in ESP32 Arduino forum.

In Arduino, NVS is implemented with Preferences library.

The library includes an example that shows how to save / read an integer counter.
As you like to save strings, then adopt this example using putString / getString methods (instead of putUInt / getUInt as in example).

Krzysztof

Re: EEPROM

Posted: Mon Mar 20, 2017 11:04 am
by PeWosT
Thank you again @krzychb, I am going to try