wifi reconnect fixed

This commit is contained in:
Bogdan Pilyugin 2023-03-27 13:00:02 +02:00
parent 808ad5a1d4
commit 4a79fdf60a

View File

@ -101,6 +101,7 @@ static void event_handler(void *arg, esp_event_base_t event_base,
xEventGroupSetBits(s_wifi_event_group, WIFI_FAIL_BIT);
isWiFiGotIp = false;
ESP_LOGI(TAG, "connect to the AP fail");
esp_wifi_connect();
}
else if (event_base == IP_EVENT && event_id == IP_EVENT_STA_GOT_IP)
{