mirror of
https://github.com/esphome/esphome.git
synced 2025-09-03 11:52:20 +01:00
fix for ESP32 'Association Leave' (#1081)
This commit is contained in:
@@ -98,6 +98,7 @@ void WiFiComponent::loop() {
|
|||||||
case WIFI_COMPONENT_STATE_STA_CONNECTED: {
|
case WIFI_COMPONENT_STATE_STA_CONNECTED: {
|
||||||
if (!this->is_connected()) {
|
if (!this->is_connected()) {
|
||||||
ESP_LOGW(TAG, "WiFi Connection lost... Reconnecting...");
|
ESP_LOGW(TAG, "WiFi Connection lost... Reconnecting...");
|
||||||
|
this->state_ = WIFI_COMPONENT_STATE_STA_CONNECTING;
|
||||||
this->retry_connect();
|
this->retry_connect();
|
||||||
} else {
|
} else {
|
||||||
this->status_clear_warning();
|
this->status_clear_warning();
|
||||||
|
Reference in New Issue
Block a user