Skip to content

Commit

Permalink
Small WiFiManager update
Browse files Browse the repository at this point in the history
  • Loading branch information
jellewie committed Oct 19, 2020
1 parent 9b3a3d1 commit 7510038
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion Arduino/Arduino.ino
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ extern void StartAnimation(byte ID, int Time);//^ Required for Clock.h
#define WiFiManagerUser_HandleAP_Defined //^
#define WiFiManagerUser_VariableNames_Defined //Define that we want to use the custom user variables (Dont forget to settup WiFiManager_VariableNames and WiFiManager_Settings)
const String WiFiManager_VariableNames[] = {"SSID", "Password", "BootMode", "HourlyAnimationS", "DoublePressMode", "AutoBrightness", "AutoBrightnessN", "AutoBrightnessP", "AutoBrightnessO", "ClockHourLines", "ClockHourAnalog", "ClockOffset", "ClockAnalog", "gmtOffset_sec", "daylightOffset_sec", "PotMinChange", "PotStick", "PotMin", "Name", "Task0", "Task1", "Task2", "Task3", "Task4", "Task5", "Task6", "Task7"};
const byte WiFiManager_Settings = sizeof(WiFiManager_VariableNames) / sizeof(WiFiManager_VariableNames[0]); //Why filling this in if we can automate that? :)
const byte EEPROM_size = 255; //Max Amount of chars for 'SSID(16) + PASSWORD(16) + extra custom vars(?) +1(NULL)' defaults to 33
#define WiFiManagerUser_APSSID_Defined
char* APSSID = Name; //If you want to define the name somewhere else use 'char* APSSID = Name'
Expand Down
2 changes: 1 addition & 1 deletion Arduino/WiFiManager/WiFiManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ WebServer server(80);

#ifndef WiFiManagerUser_VariableNames_Defined
const String WiFiManager_VariableNames[] = {"SSID", "Password"};
const byte WiFiManager_Settings = sizeof(WiFiManager_VariableNames) / sizeof(WiFiManager_VariableNames[0]); //Why filling this in if we can automate that? :)
#endif //WiFiManagerUser_VariableNames_Defined
const byte WiFiManager_Settings = sizeof(WiFiManager_VariableNames) / sizeof(WiFiManager_VariableNames[0]); //Why filling this in if we can automate that? :)

class CWiFiManager {
private:
Expand Down

0 comments on commit 7510038

Please sign in to comment.