full update for BatteryHealthMonitor

This commit is contained in:
richonguzman
2024-05-24 14:24:40 -04:00
parent c6687529da
commit 3589f54d02
9 changed files with 61 additions and 21 deletions
+3 -1
View File
@@ -2,6 +2,7 @@
#include "configuration.h"
#include "ota_utils.h"
#include "web_utils.h"
#include "display.h"
#include "utils.h"
extern Configuration Config;
@@ -192,7 +193,7 @@ namespace WEB_Utils {
AsyncWebServerResponse *response = request->beginResponse(302, "text/html", "");
response->addHeader("Location", "/");
request->send(response);
display_toggle(false);
ESP.restart();
}
@@ -204,6 +205,7 @@ namespace WEB_Utils {
request->send(200, "text/plain", "Beacon will be sent in a while");
} else if (type == "reboot") {
display_toggle(false);
ESP.restart();
} else {
request->send(404, "text/plain", "Not Found");