mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-09 16:21:45 +00:00
Implement firmware update in ESP32 device-dashboard example using espressif OTA APIs
This commit is contained in:
1 parent
7581229bbf
commit
c20cc4ae09
5 files changed
+246
-14
No files matched your search
@@ -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"));
|
||||
|
||||
Reference in new issue
Block a user