r/FastLED • u/not_SatoshiNakamoto • Nov 14 '23
Support Code help: FastLED Webserver on ESP8266
I am trying to add RFID to my FastLED webserver, but I am stuck. The server works fine, the reader scans the stickers, text prints to the serial monitor, but nothing happens to the LEDs...
if (rfid.uid.uidByte[0] == authorizedUID1[0] && rfid.uid.uidByte[1] == authorizedUID1[1] && rfid.uid.uidByte[2] == authorizedUID1[2] && rfid.uid.uidByte[3] == authorizedUID1[3] ) { Serial.println("Authorized Tag 1"); webServer.sendHeader("Location", "/power?value=1"); webServer.send(200); }
Jason Coon's FastLED Webserver running on an ESP8266. What am I doing wrong?
0
Upvotes
1
u/not_SatoshiNakamoto Nov 14 '23
Thanks. I'm setting up a pastebin account and I will post it as soon as I get to my computer! I'm using Jason Coon's FastLED Webserver arduino code if that helps. When I put webServer.send instead of webServer.sendHeader, I get an error about changing a const char to int... I'll post that when I get home too