Preferences.h Library -> where can I Download it

Hey falks, where can I download the Preferences.h Library ?

On Github, there is no download-link.

Is it not available in the Library Manager of the IDE ?

1 Like

No, I have searched for it.

Which version of the IDE are you using ?

1 Like

1.8.12 Version

Wow. You are several versions behind

I suggest that you update the IDE to 1.8.19 or 2.0.4

Which version of the ESP32 board files do you have installed ?

1 Like

I have no ESP32 installed. Maybe that's the reason why my IDE misses preferences.h ?

The Preferences library can only be used with an ESP8266 or ESP32. So, without the board files for one of them being installed the library will not be available

Which board are you planning to use it with ?

1 Like

ESP8266 Board. I am trying to install the ESP32 board anyway. May than my ESP8266 finds the preferences.h

Let us know how you get on

If all else fails you can download the files and install manually but I think that it should not be necessary

I tested the Preferences library a long while ago and have recently used it properly with an ESP8266 so I know that it works, but I don't remember whether I had to install it explicitly or whether it came with the board files

Which version of the ESP8266 board files do you have installed ?

1 Like

I have issues with my internet right now. will share my results later today :smiley:

Are you sure it is not included in the core ?

1 Like

I am sure that it is, but judging by the IDE version that is being used the ESP8266 core files are likely to be out of date too

We shall see in due course

1 Like

Case closed dude !! :smiley:

Here is the solution:

In order to use, the Preferences.h library, you have to do the followings:

  1. Install the esp32 board
  2. search in the library-manager for 'Preferences'
  3. That's it :smiley:

There is no need to update your Arduino IDE or etc.

Thanks @UKHeliBob you have saved my day :smiley:

I am glad to be of service, but I still think that you should update the IDE to at least 1.8.19 if not going the whole hog up to 2.0.4

Note that IDE 1.x and IDE 2.x can both be installed on the same PC and co-exist without problems

1 Like

Okay brother,

as a beginner, I absolutely should listen to a prof, therefore, I will install the latest version.

again: thanks bro

I had also issues with the Preferences library, not available for ESP32 with the 1.8.x Arduino version; I could solve it by adding the link to the Arduino IDE menu "File>>Preferences":

https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.