You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey there!
I just tried your code and I found few bugs.
I wouldn't recommend using SPIFFS as its deprecated already and may be removed in the later releases. Use LittleFS as the console says, too.
Changing the following lines in the code will resolve the SPIFFS issues: #include <FS.h> to #include <LittleFS.h> SPIFFS.begin(); to LittleFS.begin(); server.serveStatic("/", SPIFFS, "/", "no-cache"); to server.serveStatic("/", LittleFS, "/", "no-cache");.
Hey there!
I just tried your code and I found few bugs.
I wouldn't recommend using SPIFFS as its deprecated already and may be removed in the later releases. Use LittleFS as the console says, too.
Changing the following lines in the code will resolve the SPIFFS issues:
#include <FS.h>
to#include <LittleFS.h>
SPIFFS.begin();
toLittleFS.begin();
server.serveStatic("/", SPIFFS, "/", "no-cache");
toserver.serveStatic("/", LittleFS, "/", "no-cache");
.You can use the following plugin to upload your files: https://github.com/earlephilhower/arduino-esp8266littlefs-plugin
I got an other weird error, too:
long strtol (const char *__restrict __n, char **__restrict __end_PTR, int __base); invalid conversion from 'char' to 'char**' [-fpermissive]
The issue starts on the line 151 because we are trying to pass invalid data. Changing the
'\0'
toNULL
will resolve the problem. Here is the snippet:Welcome!
The text was updated successfully, but these errors were encountered: