Anpassung Zeitmessung, Batterie Backend to Frontend

This commit is contained in:
Carsten Graf
2025-07-11 22:07:13 +02:00
parent 393a0b718b
commit 2bd47a10a5
4 changed files with 96 additions and 34 deletions

View File

@@ -18,22 +18,22 @@ void setupDebugAPI(AsyncWebServer& server) {
//DEBUG
server.on("/api/debug/start1", HTTP_GET, [](AsyncWebServerRequest *request){
handleStart1();
handleStart1(0);
request->send(200, "text/plain", "handleStart1() called");
});
server.on("/api/debug/stop1", HTTP_GET, [](AsyncWebServerRequest *request){
handleStop1();
handleStop1(0);
request->send(200, "text/plain", "handleStop1() called");
});
server.on("/api/debug/start2", HTTP_GET, [](AsyncWebServerRequest *request){
handleStart2();
handleStart2(0);
request->send(200, "text/plain", "handleStart2() called");
});
server.on("/api/debug/stop2", HTTP_GET, [](AsyncWebServerRequest *request){
handleStop2();
handleStop2(0);
request->send(200, "text/plain", "handleStop2() called");
});