feat: add NeoPixel example

This commit is contained in:
2025-08-28 21:21:04 +02:00
parent 4b63d1011f
commit f8e5a9c66f
4 changed files with 395 additions and 161 deletions

View File

@@ -36,7 +36,7 @@ public:
request->send(200, "application/json", json);
});
api.addEndpoint("/api/relay/set", HTTP_POST, [this](AsyncWebServerRequest* request) {
api.addEndpoint("/api/relay", HTTP_POST, [this](AsyncWebServerRequest* request) {
String state = request->hasParam("state", true) ? request->getParam("state", true)->value() : "";
bool ok = false;
if (state.equalsIgnoreCase("on")) {