Display available space on SDCard

This commit is contained in:
jpirnay
2026-03-16 20:26:36 +01:00
parent 125ef361d2
commit 87bbfb26af
4 changed files with 23 additions and 0 deletions
+2
View File
@@ -326,6 +326,8 @@ void CrossPointWebServer::handleStatus() const {
doc["rssi"] = apMode ? 0 : WiFi.RSSI();
doc["freeHeap"] = ESP.getFreeHeap();
doc["uptime"] = millis() / 1000;
doc["sdTotal"] = Storage.sdTotalBytes();
doc["sdUsed"] = Storage.sdUsedBytes();
String json;
serializeJson(doc, json);