Remove authentication requirement from handleSet function
This commit is contained in:
@@ -586,7 +586,6 @@ static void handleConfig() {
|
||||
}
|
||||
|
||||
static void handleSet() {
|
||||
if (!requireAuth()) { Serial.println("[HTTP] GET /set -> 401"); return; }
|
||||
if (!server.hasArg("i") || !server.hasArg("v")) { server.send(400); Serial.println("[HTTP] GET /set missing args"); return; }
|
||||
int idx = server.arg("i").toInt();
|
||||
float val = server.arg("v").toFloat();
|
||||
|
||||
Reference in New Issue
Block a user