knxdisplay/main/webserver/StatusHandlers.cpp
2026-01-30 08:51:59 +01:00

8 lines
266 B
C++

#include "WebServer.hpp"
#include "../SdCard.hpp"
esp_err_t WebServer::getStatusHandler(httpd_req_t* req) {
cJSON* json = cJSON_CreateObject();
cJSON_AddBoolToObject(json, "sdMounted", SdCard::instance().isMounted());
return sendJsonObject(req, json);
}