Replies: 3 comments 13 replies
-
Hello Thats nice if it would run on esp8266 esp8285 And litlefs might be better because spiffs is not adviced to be used anymore Thank you for your input |
Beta Was this translation helpful? Give feedback.
-
please make a fork from my page and do edits in your github im using linux in the past i have had some strange dfferences between linux and windows arduino ide would be better if the includ header used ifdef example from espasycncwebserver #include <ArduinoOTA.h> #include <ESPAsyncWebServer.h> |
Beta Was this translation helpful? Give feedback.
-
struct FSInfo { /* https://www.mischianti.org/2020/06/22/wemos-d1-mini-esp8266-integrated-littlefs-filesystem-part-5/
*/ #include "Arduino.h" void setup()
} void loop() } Inizializing FS... logo.jpg - 46136 https://www.mischianti.org/2020/06/22/wemos-d1-mini-esp8266-integrated-littlefs-filesystem-part-5/ |
Beta Was this translation helpful? Give feedback.
-
I tried to port your sketch to the ESP8266 platform.
Changed the necessary libraries and most important switched to LittleFS instead of SPIFFS...
My only problems are these:
// Load values saved in SPIFFS
ssid = readFile(LittleFS, ssidPath);
Serial.println(ssid);
pass = readFile(LittleFS, passPath);
Serial.println(pass);
ip = readFile(LittleFS, ipPath);
Serial.println(ip);
gateway = readFile(LittleFS, gatewayPath);
Serial.println(gateway);
subnet = readFile(LittleFS, subnetPath);
Serial.println(subnet);
mdnsdotlocalurl = readFile(LittleFS, mdnsPath);
Serial.println(mdnsdotlocalurl);
dhcpcheck = readFile(LittleFS, dhcpcheckPath);
Serial.println(dhcpcheck);
relaispin = readFile(LittleFS, relaispinPath);
Serial.println(relaispin);
ledPin = relaispin.toInt(); <-- I get an error because ledPin was declared as a constant?
Serial.println(relaispin);
server.on("/list", HTTP_GET, [](AsyncWebServerRequest * request) { // /list files in spiffs on webpage
if (!LittleFS.begin()) {
Serial.println("An Error has occurred while mounting SPIFFS");
return;
}
I get the following error: exit status 1
'class fs::FS' has no member named 'totalBytes'
Same goes for usedBytes
Any suggestions?
Beta Was this translation helpful? Give feedback.
All reactions