Fix status endpoint and relay defaults
This commit is contained in:
@@ -175,9 +175,13 @@ void pollDashboardUart() {
|
||||
}
|
||||
|
||||
void handleStatus() {
|
||||
server.setContentLength(CONTENT_LENGTH_UNKNOWN);
|
||||
server.send(200, "application/json", "");
|
||||
sendStatus(server.client(), true);
|
||||
DynamicJsonDocument doc(2048);
|
||||
buildStatusDocument(doc);
|
||||
|
||||
String output;
|
||||
serializeJson(doc, output);
|
||||
|
||||
server.send(200, "application/json", output);
|
||||
}
|
||||
|
||||
void handleRelayHttp(const char* relayName, bool enabled) {
|
||||
|
||||
Reference in New Issue
Block a user