What is the equivalent API for Preferences under ESP-IDF?
https://github.com/espressif/arduino-es ... references
Equivalent of preferences in ESP-IDF?
Re: Equivalent of preferences in ESP-IDF?
Howdy,
If by preferences you mean the ability to set configuration options at compiled time that can be customized ... then it might be that you can leverage the ESP-IDF build system. This allows you to add any number of custom options that can be modified via the "make menuconfig" tooling. See:
http://esp-idf.readthedocs.io/en/latest ... ystem.html
If by preferences you mean the ability to set configuration options at compiled time that can be customized ... then it might be that you can leverage the ESP-IDF build system. This allows you to add any number of custom options that can be modified via the "make menuconfig" tooling. See:
http://esp-idf.readthedocs.io/en/latest ... ystem.html
Free book on ESP32 available here: https://leanpub.com/kolban-ESP32
- martinayotte
- Posts: 141
- Joined: Fri Nov 13, 2015 4:27 pm
Re: Equivalent of preferences in ESP-IDF?
No, Kolban. The OP means by Preferences storages which he provided link for.
A bit like nvs_rw_value and nvs_rw_blob.
But Preferences provided much more methods for Strings as an example, but those could be done with blobs.
In fact, Preferences are on top of NVS, so this class could be copied/pasted into any ESP-IDF code.
A bit like nvs_rw_value and nvs_rw_blob.
But Preferences provided much more methods for Strings as an example, but those could be done with blobs.
In fact, Preferences are on top of NVS, so this class could be copied/pasted into any ESP-IDF code.
Re: Equivalent of preferences in ESP-IDF?
Yes you got it. And probably its a good idea to have it on both sides since its easier API set.martinayotte wrote:No, Kolban. The OP means by Preferences storages which he provided link for.
A bit like nvs_rw_value and nvs_rw_blob.
But Preferences provided much more methods for Strings as an example, but those could be done with blobs.
In fact, Preferences are on top of NVS, so this class could be copied/pasted into any ESP-IDF code.
SPIFFS is also available on both sides now as an option... but wanted to know the plans for 'preferences'
- martinayotte
- Posts: 141
- Joined: Fri Nov 13, 2015 4:27 pm
Re: Equivalent of preferences in ESP-IDF?
I don't know about ESP-IDF plans/schedules, but since Preferences is top of NVS, NVS could be use instead, here is an example for putString() :
https://github.com/espressif/arduino-es ... #L245-L260
https://github.com/espressif/arduino-es ... #L245-L260
Re: Equivalent of preferences in ESP-IDF?
Thank you. Will try it out.martinayotte wrote:I don't know about ESP-IDF plans/schedules, but since Preferences is top of NVS, NVS could be use instead, here is an example for putString() :
https://github.com/espressif/arduino-es ... #L245-L260
Who is online
Users browsing this forum: Bing [Bot] and 134 guests