diff --git a/src/WiFiTransport.c b/src/WiFiTransport.c index cebebda..7a854df 100644 --- a/src/WiFiTransport.c +++ b/src/WiFiTransport.c @@ -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) {