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

#include <LittleFS> #7384

Closed
alka79 opened this issue Jun 16, 2020 · 0 comments · Fixed by #7385
Closed

#include <LittleFS> #7384

alka79 opened this issue Jun 16, 2020 · 0 comments · Fixed by #7385

Comments

@alka79
Copy link

alka79 commented Jun 16, 2020

Hello,

The main page says for File System here https://github.com/esp8266/Arduino/blob/master/doc/filesystem.rst

Note: to use any of file system functions in the sketch, add the following include to the sketch:
#include "FS.h"

The note seems to indicate that FS.h will cover both SPIFFS or LitttleFS.

I followed the guide to convert from SPIFFS to LittleFS and got compiler errors :
LittleFS was not declared in this scope.

I finally found that #include <LittleFS.h> instead of <FS.h> solves the issue.

As a side note, it is confusing that Arduino IDE recognises SPIFFS as a keyword and not LittleFS.
keywords.txt is missing for this lib.

Hope it helps,
Al

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

Successfully merging a pull request may close this issue.

1 participant