LittleFS, on ESP32, too. see my library and tool plus the core conversation:

https://github.com/lorol/arduino-esp32littlefs-plugin
https://github.com/lorol/LITTLEFS

https://github.com/espressif/arduino-esp32/issues/3765

#include <FS.h>
#define SPIFFS LITTLEFS
#include <LITTLEFS.h>
This commit is contained in:
lorol
2020-06-17 13:12:16 -04:00
parent 0ca699fa53
commit abb9d79045
2 changed files with 18 additions and 7 deletions

View File

@@ -1,12 +1,18 @@
#define USE_LittleFS // possible only for ESP8266 for now
#include <ArduinoOTA.h>
#ifdef ESP32
#include <FS.h>
#include <SPIFFS.h>
#include <ESPmDNS.h>
#include <WiFi.h>
#include <AsyncTCP.h>
#include <FS.h>
#ifdef USE_LittleFS
#define SPIFFS LITTLEFS
#include <LITTLEFS.h>
#else
#include <SPIFFS.h>
#endif
#include <ESPmDNS.h>
#include <WiFi.h>
#include <AsyncTCP.h>
#elif defined(ESP8266)
#ifdef USE_LittleFS
#include <FS.h>

View File

@@ -13,7 +13,7 @@ Multiple clients can be connected at same time, they see each other requests
Use latest ESP core lib (from Github)
*/
#define USE_LittleFS // possible only for ESP8266 for now
#define USE_LittleFS
#define USE_WFM // to use ESPAsyncWiFiManager
//#define DEL_WFM // delete Wifi credentials stored
@@ -41,7 +41,12 @@ Use latest ESP core lib (from Github)
#include <ArduinoOTA.h>
#ifdef ESP32
#include <FS.h>
#include <SPIFFS.h>
#ifdef USE_LittleFS
#define SPIFFS LITTLEFS
#include <LITTLEFS.h>
#else
#include <SPIFFS.h>
#endif
#include <ESPmDNS.h>
#include <WiFi.h>
#include <AsyncTCP.h>