We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa3687e commit 9b4f124Copy full SHA for 9b4f124
src/FWebserver.cpp
@@ -50,6 +50,11 @@ namespace Webserver
50
FastLEDHub.restart();
51
ESPEssentials::WebServer.send(200, "text/plain", "Animation restarted.");
52
});
53
+ ESPEssentials::WebServer.on("/status", HTTP_GET, [&]()
54
+ {
55
+ String statusMsg = "{\"status\": " + String((int) FastLEDHub.getStatus()) + ", \"currentAnimation\": \"" + FastLEDHub.getCurrentAnimationName() + "\"}";
56
+ ESPEssentials::WebServer.send(200, "text/plain", statusMsg.c_str());
57
+ });
58
ESPEssentials::WebServer.on("/begin", HTTP_GET, [&]()
59
{
60
if (ESPEssentials::WebServer.hasArg("animation"))
0 commit comments