Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make filesystem configurable #31

Open
notsleep196 opened this issue May 16, 2023 · 0 comments
Open

Make filesystem configurable #31

notsleep196 opened this issue May 16, 2023 · 0 comments

Comments

@notsleep196
Copy link

Hello!

This library uses SPIFFS as the only filesystem for ESP32. But in many sources SPIFFS marked as deprecated and it is recommended to move to LittleFS.
Now LittleFS is added to arduino-esp32 and may be preffered filesystem for many projects.

Necessary changes in WiFiSettings.cpp to work using LittleFS:

#ifdef ESP32
    #define ESPFS SPIFFS
    #define ESPMAC (Sprintf("%06" PRIx64, ESP.getEfuseMac() >> 24))
    #include <SPIFFS.h>

should be changed with:

#ifdef ESP32`
    #define ESPFS LittleFS
    #define ESPMAC (Sprintf("%06" PRIx64, ESP.getEfuseMac() >> 24))
    #include <LittleFS.h>

Using this changes everything works fine with LittleFS
Maybe filesystem type should be configurable or lib should work with both filesystems?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant