ESP8266[NodeMCU] LittleFS Library Problem

I'm working on Arduino IDE to implement LittleFS file system.However I get the error message as "src\LITTLEFS.cpp:17:21: fatal error: vfs_api.h: No such file or directory #include "vfs_api.h" when I try to compile my program.

Code :

#include <Arduino.h> #include "FS.h" #include <LITTLEFS.h> #define FORMAT_LITTLEFS_IF_FAILED true void setup(){ } void loop(){ } 

Arduino version : 1.8.13

Board : NodeMCU v3(ESP12-E Module 1.0)

Flash Size : 4MB(1 MB SPIFFS)

1 Answer

Seems like you've chosen the ESP32 version of this project, which doesn't run on ESP8266. Try the ESP8266 version instead.

1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like