mirror of
https://github.com/esphome/esphome.git
synced 2024-09-07 00:59:08 +02:00
wifi: retry connection if the connection is not valid (#994)
This commit is contained in:
parent
4ec636c08f
commit
25cdbacecc
@ -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 New Issue
Block a user