mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 07:49:52 +03:00
don't echo wifi password after setting it
This commit is contained in:
@@ -320,8 +320,7 @@ void System::system_restart(const char * partitionname) {
|
|||||||
void System::wifi_reconnect() {
|
void System::wifi_reconnect() {
|
||||||
EMSESP::esp32React.getNetworkSettingsService()->read(
|
EMSESP::esp32React.getNetworkSettingsService()->read(
|
||||||
[](NetworkSettings & networkSettings) { LOG_INFO("WiFi reconnecting to SSID '%s'...", networkSettings.ssid.c_str()); });
|
[](NetworkSettings & networkSettings) { LOG_INFO("WiFi reconnecting to SSID '%s'...", networkSettings.ssid.c_str()); });
|
||||||
Shell::loop_all();
|
delay(500); // wait
|
||||||
delay(1000); // wait a second
|
|
||||||
EMSESP::webSettingsService.save(); // save local settings
|
EMSESP::webSettingsService.save(); // save local settings
|
||||||
EMSESP::esp32React.getNetworkSettingsService()->callUpdateHandlers(); // in case we've changed ssid or password
|
EMSESP::esp32React.getNetworkSettingsService()->callUpdateHandlers(); // in case we've changed ssid or password
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user