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!
Using Flash Memory while also using Autoconnect
-
- Posts: 6
- Joined: Thu Sep 17, 2020 3:17 pm
-
- Posts: 9759
- Joined: Thu Nov 26, 2015 4:08 am
Re: Using Flash Memory while also using Autoconnect
You probably want to use Preferences (which maps to NVS on the ESP-IDF side, which saves things to flash)
-
- Posts: 6
- Joined: Thu Sep 17, 2020 3:17 pm
Re: Using Flash Memory while also using Autoconnect
Thanks - can you share any links that might get me started in the right direction with this?
-
- Posts: 9759
- Joined: Thu Nov 26, 2015 4:08 am
Re: Using Flash Memory while also using Autoconnect
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.
-
- Posts: 364
- Joined: Mon Jan 04, 2021 2:06 pm
Re: Using Flash Memory while also using Autoconnect
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
If you're using PlatformIO you can easily import to your project.
https://platformio.org/lib/show/5989/ArduinoNvs
Who is online
Users browsing this forum: Baidu [Spider] and 48 guests