Closed StefanL38 closed 1 year ago
Since version 2.0.0 of ESP32 Arduino core all sources related to LittleFS was renamed in order to match with ESP8266 implementation, so there is no need to use
#ifdef ESP8266
#include <LittleFS.h>
#define FILESYSTEM LittleFS
ESP8266WebServer server(80);
#elif defined(ESP32)
#include <LITTLEFS.h>
#define FILESYSTEM LITTLEFS
WebServer server(80);
#endif
Probably you are using an old version of core (latest is 2.0.3).
Regarding the different name of webserver class, it's handled directly in the sources of library since some time and you can use the generic name WebServerClass
.
#include <LittleFS.h>
#define FILESYSTEM LittleFS
WebServerClass server(80);
Probably you are using an old version of core (latest is 2.0.3).
2.0.3 doesn't make sense to me. Is this a type and you mean ESP8266 3.0.2
2.0.3
3.0.2
which version do you mean ESP32 my Boardmanager tells me
newest version for ESP32 is
newest version for ESP8266 is
You are using an old JSON link in your IDE preferences for ESP32. Probably you've got it from an outdated tutorial instead from Espressif official documentation. You can find the updated information for Arduino IDE at this address
Hi I made a small change to the code so that the correct littl-flsesystem-library is included on compiling here is my modified version
I have tested it with an ESP32 and an ESP8266-board and it does compile and run as expected
the modification is here
full code is this
best regards Stefan