-
Notifications
You must be signed in to change notification settings - Fork 21
Description
Hello,
I have downloaded the plugin, when using Arduino 1.8 if i go to Esp32 Sketch Data Upload menu item , I get the following:
[SPIFFS] data : /home/ari/Data/DigitalStables/Projects/Daffodil/data
[SPIFFS] start : 6750208
[SPIFFS] size : 1536
[SPIFFS] page : 256
[SPIFFS] block : 4096
/slideswitch.css
/Rosie.svg
/index.html
/TankAndFlowConstants.js
/styles.css
/Daffodil.svg
/bootstrap.min.js
/script.min.js
/jquery.min.js
/Roboto.css
/General.js
/bootstrap.min.css
/index.js
/Roboto-Regular.woff2
/fa-solid-900.woff2
[SPIFFS] upload : /tmp/arduino_build_770403/Daffodil.spiffs.bin
[SPIFFS] address: 6750208
[SPIFFS] port : /dev/ttyUSB0
[SPIFFS] speed : 115200
[SPIFFS] mode : dio
[SPIFFS] freq : 80m
the files are the correct ones, I am using the 8mb (3m app/1.5mb Spiff ) partition scheme. After i reset i list all the files
Then if i do a simpke sketch to ask LittleFS to list the files
`
if(!LittleFS.begin(false)) {
if(debug)Serial.println("LittleFS Mount Failed, formatting...");
LittleFS.format();
if(!LittleFS.begin(false)) {
if(debug)Serial.println("LittleFS Mount Failed even after formatting");
return;
} else{
if(debug)Serial.println("After formating, LittleFS is good");
}
}else{
if(debug)Serial.println("LittleFS is good, no need to format");
}
// List all files
File root = LittleFS.open("/");
File file = root.openNextFile();
Serial.println("Files in LittleFS:");
while(file){
Serial.print(" FILE: ");
Serial.print(file.name());
Serial.print(" SIZE: ");
Serial.println(file.size());
file = root.openNextFile();
}
// Check if index.html exists specifically
if(LittleFS.exists("/index.html")){
Serial.println("/index.html exists!");
File f = LittleFS.open("/index.html", "r");
Serial.print("File size: ");
Serial.println(f.size());
f.close();
} else {
Serial.println("/index.html NOT FOUND!");
}
`
and the output is:
LittleFS is good, no need to format
Files in LittleFS:
FILE: digitalstables.dat SIZE: 2480
FILE: dscount.txt SIZE: 4
FILE: seedling.dat SIZE: 0
/index.html NOT FOUND!
So its not finding any of the files that i just uploaded.
Any suggestions?
thanks