mirror of
https://github.com/me-no-dev/ESPAsyncWebServer.git
synced 2025-09-29 15:50:56 +02:00
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:
@@ -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>
|
||||
|
@@ -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>
|
||||
|
Reference in New Issue
Block a user