This commit is contained in:
Rick Watson 2020-05-25 11:35:03 +01:00
parent b4f3fbe823
commit f73c957477

View File

@ -25,6 +25,8 @@ void SystemStatus::systemStatus(AsyncWebServerRequest* request) {
root["flash_chip_size"] = ESP.getFlashChipSize();
root["flash_chip_speed"] = ESP.getFlashChipSpeed();
// TODO - Ideally this class will take an *FS and extract the file system information from there.
// ESP8266 and ESP32 do not have feature parity in FS.h which currently makes that difficult.
#ifdef ESP32
root["fs_total"] = SPIFFS.totalBytes();
root["fs_used"] = SPIFFS.usedBytes();