wifi reconnect fixed
This commit is contained in:
parent
808ad5a1d4
commit
4a79fdf60a
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user