Skip to content

Commit 2e8d607

Browse files
projectgusespressif-bot
authored andcommitted
legacy provisioning: Always try to reconnect when disconnected
Some APs may fail authentication temporarily if they have too many associated stations, for example.
1 parent 5bdecb3 commit 2e8d607

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

examples/provisioning/legacy/ble_prov/main/app_prov.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,8 +248,8 @@ static void app_prov_event_handler(void* handler_arg, esp_event_base_t event_bas
248248
/* If none of the expected reasons,
249249
* retry connecting to host SSID */
250250
g_prov->wifi_state = WIFI_PROV_STA_CONNECTING;
251-
esp_wifi_connect();
252251
}
252+
esp_wifi_connect();
253253
}
254254
}
255255

examples/provisioning/legacy/console_prov/main/app_prov.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,8 @@ static void app_prov_event_handler(void* handler_arg, esp_event_base_t event_bas
186186
/* If none of the expected reasons,
187187
* retry connecting to host SSID */
188188
g_prov->wifi_state = WIFI_PROV_STA_CONNECTING;
189-
esp_wifi_connect();
190189
}
190+
esp_wifi_connect();
191191
}
192192
}
193193

examples/provisioning/legacy/custom_config/main/app_prov.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,8 +211,8 @@ static void app_prov_event_handler(void* handler_arg, esp_event_base_t event_bas
211211
/* If none of the expected reasons,
212212
* retry connecting to host SSID */
213213
g_prov->wifi_state = WIFI_PROV_STA_CONNECTING;
214-
esp_wifi_connect();
215214
}
215+
esp_wifi_connect();
216216
}
217217
}
218218

examples/provisioning/legacy/softap_prov/main/app_prov.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,8 +197,8 @@ static void app_prov_event_handler(void* handler_arg, esp_event_base_t event_bas
197197
/* If none of the expected reasons,
198198
* retry connecting to host SSID */
199199
g_prov->wifi_state = WIFI_PROV_STA_CONNECTING;
200-
esp_wifi_connect();
201200
}
201+
esp_wifi_connect();
202202
}
203203
}
204204

0 commit comments

Comments
 (0)