Implement firmware update in ESP32 device-dashboard example using espressif OTA APIs

This commit is contained in:
dvosully committed 2024-03-31 19:40:44 +10:00
1 parent 7581229bbf
commit c20cc4ae09
5 files changed
+246 -14

No files matched your search

+1 -1
View File
@@ -32,7 +32,7 @@ static void event_handler(void *arg, esp_event_base_t event_base,
esp_wifi_connect();
} else if (event_base == WIFI_EVENT &&
event_id == WIFI_EVENT_STA_DISCONNECTED) {
if (s_retry_num < 3) {
if (s_retry_num < 10) {
esp_wifi_connect();
s_retry_num++;
MG_INFO(("retry to connect to the AP"));