Page 1 of 2

Scan AccessPoint list cause station/client disconnect

Posted: Fri Jan 25, 2019 6:27 pm
by snahmad75
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));

Re: Scan AccessPoint list cause station/client disconnect

Posted: Sat Jan 26, 2019 12:07 am
by jcsbanks
I end up disconnecting too and auto reloading the served webpage on a delay. Thing is, sometimes it works, but there seems no way to detect in the application whether it does or doesn't apart from perhaps doing ugly and unresponsive timeouts to see if you get a positive scan result within x time.

Re: Scan AccessPoint list cause station/client disconnect

Posted: Sat Jan 26, 2019 4:43 pm
by snahmad75
So, there is no solution to scan Access point to get list when we are connect to station AP without disconnect.

Re: Scan AccessPoint list cause station/client disconnect

Posted: Sat Jan 26, 2019 5:37 pm
by Ritesh
snahmad75 wrote:
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));
Hi,

The reason behind this is because device is sending beacons to each and every APP to get list of devices and that might be the reason to disconnect first before starting scanning of wifi.

Still, Please confirm with ESP32 IDF developers as well.

Re: Scan AccessPoint list cause station/client disconnect

Posted: Fri Feb 15, 2019 6:49 pm
by snahmad75
Can some one reply. Is there possible solution that we can avoid when scan disconnect from my client/station access point.

Re: Scan AccessPoint list cause station/client disconnect

Posted: Sun Feb 17, 2019 10:10 am
by Ritesh
snahmad75 wrote:
Fri Feb 15, 2019 6:49 pm
Can some one reply. Is there possible solution that we can avoid when scan disconnect from my client/station access point.
Hi Espressif SDK Developer,

Would you please kindly look this issue in details and provide feedback for this? Can it be possible to continue connection while scanning for network?

Re: Scan AccessPoint list cause station/client disconnect

Posted: Sat Sep 26, 2020 2:03 pm
by kayleejacob1
Was this solved or answered?

Re: Scan AccessPoint list cause station/client disconnect

Posted: Mon Sep 28, 2020 9:33 am
by Ritesh
kayleejacob1 wrote:
Sat Sep 26, 2020 2:03 pm
Was this solved or answered?
I believe no any update since long time. so not answered yet? Are you facing same issue at your end? or do you have any solution for same?

Re: Scan AccessPoint list cause station/client disconnect

Posted: Mon Sep 28, 2020 5:37 pm
by kayleejacob1
Need to look at available networks while connected.

Re: Scan AccessPoint list cause station/client disconnect

Posted: Fri Feb 23, 2024 7:24 am
by hetal-mpc
Facing same issue any response?