Skip to content

Commit

Permalink
Update ui_settings_wifi.h
Browse files Browse the repository at this point in the history
wifi fixes
  • Loading branch information
mgrouch authored Jan 29, 2024
1 parent 0599246 commit 029a9f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bbn_m5tough_active_boat/ui_settings_wifi.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ extern "C" {
boolean restoreConfig() { // Check whether there is wifi configuration information storage, if there is return 1, if no return 0.
wifi_ssid = preferences.getString("WIFI_SSID");
wifi_password = preferences.getString("WIFI_PASSWD");
WiFi.setMinSecurity(WIFI_AUTH_WEP);
WiFi.setAutoConnect(true);
WiFi.setAutoReconnect(true);
WiFi.mode(WIFI_STA);
//WiFi.setMinSecurity(WIFI_AUTH_WPA_PSK);
WiFi.begin(wifi_ssid.c_str(), wifi_password.c_str());
return wifi_ssid.length() > 0;
}
Expand Down

0 comments on commit 029a9f8

Please sign in to comment.