mirror of
https://github.com/esphome/esphome.git
synced 2024-12-25 23:14:54 +01:00
wifi: retry connection if the connection is not valid (#994)
This commit is contained in:
parent
4ec636c08f
commit
25cdbacecc
1 changed files with 6 additions and 0 deletions
|
@ -420,6 +420,12 @@ void WiFiComponent::check_connecting_finished() {
|
|||
wl_status_t status = this->wifi_sta_status_();
|
||||
|
||||
if (status == WL_CONNECTED) {
|
||||
if (WiFi.SSID().equals("")) {
|
||||
ESP_LOGW(TAG, "Incomplete connection.");
|
||||
this->retry_connect();
|
||||
return;
|
||||
}
|
||||
|
||||
ESP_LOGI(TAG, "WiFi Connected!");
|
||||
this->print_connect_params_();
|
||||
|
||||
|
|
Loading…
Reference in a new issue