Page 1 of 1

Using Flash Memory while also using Autoconnect

Posted: Sun Jan 03, 2021 2:38 pm
by Imstarboard
The tutorials I have found for storing and retrieving flash memory on the ESP32 only provide examples that presume you are not using flash for anything else.

I am using autoconnect (hieromon.github.io/AutoConnect)... can someone explain and provide links to sample code where I can learn to store and retrieve small amounts of data in flash without interfering with autoconnect?

Thanks in advance!

Re: Using Flash Memory while also using Autoconnect

Posted: Mon Jan 04, 2021 1:45 am
by ESP_Sprite
You probably want to use Preferences (which maps to NVS on the ESP-IDF side, which saves things to flash)

Re: Using Flash Memory while also using Autoconnect

Posted: Tue Jan 05, 2021 12:00 am
by Imstarboard
Thanks - can you share any links that might get me started in the right direction with this?

Re: Using Flash Memory while also using Autoconnect

Posted: Tue Jan 05, 2021 1:39 am
by ESP_Sprite
Sorry, not really - I don't use Arduino myself. You can put 'esp32 arduino preferences example' in your favorite search engine to get some useful examples.

Re: Using Flash Memory while also using Autoconnect

Posted: Tue Jan 05, 2021 9:04 am
by ESP_Minatel
Maybe you can have a look at this lib: https://github.com/rpolitex/ArduinoNvs

If you're using PlatformIO you can easily import to your project.

https://platformio.org/lib/show/5989/ArduinoNvs