settings working (partially)

TODO updated
This commit is contained in:
cschwinne 2016-09-13 23:41:15 +02:00
parent a58ff54d5b
commit 724b9c6ecb
2 changed files with 5 additions and 11 deletions

View File

@ -1,13 +1,8 @@
switch dev enviroment to 100% git pc -- done
fix current issues -- vip -- debug
implement brightness slider -- vip -- done
remove settings lock option -- done
toolbar preparation toolbar preparation
add toolbar conf in settings add toolbar conf in settings
additional color picker field additional color picker field
change slider height to relative values change slider height to relative values
fully implement EEPROM -- vip -- done -- debug implement all settings setters
implement settings getter/setter -- vip -- done -- debug
implement OTA implement OTA
implement OTA lock implement OTA lock
implement button implement button
@ -15,6 +10,3 @@ implement LED Control (NeoPixelBus?) -- vip
implement HSB slider option implement HSB slider option
implement default color on boot implement default color on boot
Bugs:
FAILURE SOURCE?? --> non-null String
post req doesnt send checkboxes

View File

@ -548,11 +548,13 @@ void setup() {
if (apssid.length()>0) if (apssid.length()>0)
{ {
Serial.print("USING AP");
Serial.println(apssid.length()); Serial.println(apssid.length());
initAP(); initAP();
} else } else
{ {
WiFi.softAPdisconnect(); Serial.println("NO AP");
WiFi.softAPdisconnect(true);
} }
initCon(); initCon();
@ -585,7 +587,7 @@ void setup() {
server.on("/reset", HTTP_GET, reset); server.on("/reset", HTTP_GET, reset);
server.on("/set-settings", HTTP_POST, [](){ server.on("/set-settings", HTTP_POST, [](){
handleSettingsSet(); handleSettingsSet();
server.send(200, "text/html", "<html><head><script>alert(Settings saved. Please power cycle module to apply changes...);</script></head></html>"); server.send(200, "text/plain", "Settings saved. Please wait a minute for module to reset, then go to main page...");
reset(); reset();
}); });
if (!ota_lock){ if (!ota_lock){