Scan AccessPoint list cause station/client disconnect
Posted: Fri Jan 25, 2019 6:27 pm
I need to get Active list of AccessPoint without lose client/station connection. I am running my ESP32 in
both modes STA and AP.
esp_wifi_set_mode(WIFI_MODE_APSTA)
See this link for more detail.
https://github.com/espressif/esp-idf/issues/2497
Urgent reply please.
I have to stop client before start scan to avoid crash.
// Disconect before start scan. Fix crash.
ACDTRACEF(ES_NoError, "esp_wifi_disconnect\n");
ESP_ERROR_CHECK(esp_wifi_disconnect());
memset(wifi_manager_config_sta, 0x00, sizeof(wifi_config_t));
wifi_scan_config_t conf;
memset(&conf, 0, sizeof(conf));
conf.show_hidden = true;
ESP_ERROR_CHECK(esp_wifi_scan_start(&conf, true));
both modes STA and AP.
esp_wifi_set_mode(WIFI_MODE_APSTA)
See this link for more detail.
https://github.com/espressif/esp-idf/issues/2497
Urgent reply please.
I have to stop client before start scan to avoid crash.
// Disconect before start scan. Fix crash.
ACDTRACEF(ES_NoError, "esp_wifi_disconnect\n");
ESP_ERROR_CHECK(esp_wifi_disconnect());
memset(wifi_manager_config_sta, 0x00, sizeof(wifi_config_t));
wifi_scan_config_t conf;
memset(&conf, 0, sizeof(conf));
conf.show_hidden = true;
ESP_ERROR_CHECK(esp_wifi_scan_start(&conf, true));