Fix: Debugmode. TBD
This commit is contained in:
BIN
lib/PrettyOTA/examples/.DS_Store
vendored
BIN
lib/PrettyOTA/examples/.DS_Store
vendored
Binary file not shown.
BIN
lib/PrettyOTA/examples/callbacks/.DS_Store
vendored
BIN
lib/PrettyOTA/examples/callbacks/.DS_Store
vendored
Binary file not shown.
@@ -17,21 +17,25 @@ void setupDebugAPI(AsyncWebServer &server) {
|
|||||||
// DEBUG
|
// DEBUG
|
||||||
server.on("/api/debug/start1", HTTP_GET, [](AsyncWebServerRequest *request) {
|
server.on("/api/debug/start1", HTTP_GET, [](AsyncWebServerRequest *request) {
|
||||||
// handleStart1(0);
|
// handleStart1(0);
|
||||||
|
IndividualMode("start",2,1,millis());
|
||||||
request->send(200, "text/plain", "handleStart1() called");
|
request->send(200, "text/plain", "handleStart1() called");
|
||||||
});
|
});
|
||||||
|
|
||||||
server.on("/api/debug/stop1", HTTP_GET, [](AsyncWebServerRequest *request) {
|
server.on("/api/debug/stop1", HTTP_GET, [](AsyncWebServerRequest *request) {
|
||||||
// handleStop1(0);
|
// handleStop1(0);
|
||||||
|
IndividualMode("stop",1,1,millis());
|
||||||
request->send(200, "text/plain", "handleStop1() called");
|
request->send(200, "text/plain", "handleStop1() called");
|
||||||
});
|
});
|
||||||
|
|
||||||
server.on("/api/debug/start2", HTTP_GET, [](AsyncWebServerRequest *request) {
|
server.on("/api/debug/start2", HTTP_GET, [](AsyncWebServerRequest *request) {
|
||||||
// handleStart2(0);
|
// handleStart2(0);
|
||||||
|
IndividualMode("start",2,2,millis());
|
||||||
request->send(200, "text/plain", "handleStart2() called");
|
request->send(200, "text/plain", "handleStart2() called");
|
||||||
});
|
});
|
||||||
|
|
||||||
server.on("/api/debug/stop2", HTTP_GET, [](AsyncWebServerRequest *request) {
|
server.on("/api/debug/stop2", HTTP_GET, [](AsyncWebServerRequest *request) {
|
||||||
// handleStop2(0);
|
// handleStop2(0);
|
||||||
|
IndividualMode("stop",1,2,millis());
|
||||||
request->send(200, "text/plain", "handleStop2() called");
|
request->send(200, "text/plain", "handleStop2() called");
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user