Has anyone coded the WiFi manager or anything else to allow you to change the DATA_PIN, NUM_LEDS, and LED_TYPE?
Would be awesome to be able to have a web interface for those, and not sure if you can or not. Of course, after the change a reset would occur. lol
I’m not sure you can do it on the fly. Perhaps if you had a parameter file written to nvram?
@Mike_Thornbury Okay, I will start my research in that direction. So much to learn!!! I was hoping NUM_LEDS could be stored like the ssid and password like this example.
/** Load WLAN credentials from EEPROM */
void loadCredentials() {
EEPROM.begin(512);
EEPROM.get(0, ssid);
EEPROM.get(0+sizeof(ssid), password);
char ok[2+1];
EEPROM.get(0+sizeof(ssid)+sizeof(password), ok);
EEPROM.end();
if (String(ok) != String("OK")) {
ssid[0] = 0;
password[0] = 0;
}
Serial.println("Recovered credentials:");
Serial.println(ssid);
Serial.println(strlen(password)>0?"********":"<no password>");
}
/** Store WLAN credentials to EEPROM */
void saveCredentials() {
EEPROM.begin(512);
This file has been truncated. show original
That’s exactly what I was thinking. I’m not expert, by any stretch, though. It’s certainly where I would start.
@Mike_Thornbury Thanks, I will begin my research.