dont incremental connect
This commit is contained in:
parent
cda32dd951
commit
3c778c4c9c
1 changed files with 0 additions and 6 deletions
|
@ -65,13 +65,7 @@ static esp_err_t wifi_event_handler(void *ctx, system_event_t *event) {
|
||||||
ESP_LOGI(TAG, "SYSTEM_EVENT_STA_DISCONNECTED");
|
ESP_LOGI(TAG, "SYSTEM_EVENT_STA_DISCONNECTED");
|
||||||
xEventGroupClearBits(wm_event_group, WIFI_CONNECTED);
|
xEventGroupClearBits(wm_event_group, WIFI_CONNECTED);
|
||||||
|
|
||||||
vTaskDelay(CONFIG_WIFI_MANAGER_CONNECTION_DELAY / portTICK_PERIOD_MS);
|
|
||||||
|
|
||||||
// inc to the next ap, if it's the last one go IDLE
|
|
||||||
// else attempt to connect
|
|
||||||
ap_store.last++;
|
|
||||||
if(ap_store.count == ap_store.last) {
|
|
||||||
ap_store.last = 0;
|
|
||||||
|
|
||||||
xEventGroupSetBits(wm_event_group, WIFI_IDLE);
|
xEventGroupSetBits(wm_event_group, WIFI_IDLE);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue