#include "FS.h"
void setup() {
Serial.begin(9600);
if (SPIFFS.begin() ) {
// Next lines have to be done ONLY ONCE!!!!!When
SPIFFS is formatted ONCE you can comment these lines out!!
// Serial.println("Please wait 30 secs for
SPIFFS to be formatted");
// SPIFFS.format();
// Serial.println("Spiffs formatted");
FSInfo fs_info;
SPIFFS.info(fs_info);
Serial.println("totalBytes:" +
String(fs_info.totalBytes));
Serial.println("usedBytes:" +
String(fs_info.usedBytes));
Serial.println("blockSize:" +
String(fs_info.blockSize));
Serial.println("pageSize:" +
String(fs_info.pageSize));
Serial.println("maxOpenFiles:" +
String(fs_info.maxOpenFiles));
Serial.println("maxPathLength:" +
String(fs_info.maxPathLength));
}
}
void loop() {
}
|