Update McLighting.ino
- "/pixelconf" code to check for HTTP method code is commented but placed for the future
This commit is contained in:
parent
1f0087fec8
commit
3af70b4953
1 changed files with 13 additions and 0 deletions
|
@ -773,6 +773,19 @@ void setup() {
|
|||
|
||||
server.on("/pixelconf", []() {
|
||||
|
||||
/*
|
||||
|
||||
// This will be used later when web-interface is ready and HTTP_GET will not be allowed to update the Strip Settings
|
||||
|
||||
if(server.args() == 0 and server.method() != HTTP_POST)
|
||||
{
|
||||
server.sendHeader("Access-Control-Allow-Origin", "*");
|
||||
server.send(200, "text/plain", "Only HTTP POST method is allowed and check the number of arguments!");
|
||||
return;
|
||||
}
|
||||
|
||||
*/
|
||||
|
||||
bool updateStrip = false;
|
||||
if(server.hasArg("ct")){
|
||||
uint16_t pixelCt = server.arg("ct").toInt();
|
||||
|
|
Loading…
Reference in a new issue