feat: add NeoPixel example
This commit is contained in:
@@ -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")) {
|
||||
|
||||
Reference in New Issue
Block a user