Closed lukecyca closed 5 years ago
hi@lukecyca, because connect need start a default scan itself, we call it connecting scan, if a scan command invoked when connecting scan is running, it will interrupt the connect scan and it can not send disconnect event instead of scan done event before 3.0.4, after our discussion, we deceide to change this behavior, user scan shouldn't interrput connect scan when connecting, so suggestion you invoke a disconnect before start scan so that it can scan
Effectively saying before start scan for ESP32 to get list. We have to do esp_wifi_disconnect which will disconnect from client/station AP. not good for us. we need to show list of Acess point and if any Access point is connected. I am running ESP32 WiFi in WIFI_MODE_APSTA mode. Any idea how we can avoid disconnection from station/client and scan as well to get Access Point list.
Kindly help me.
HI @snahmad, as you said, you need to call esp_wifi_disconnect() before calling esp_wifi_scan_start() if the ESP32 STA fails to connect the AP. We will fix it in IDF master, but the change is big, we need time to do it.
@lukecyca Thanks for reporting the issue, feel free to reopen the issue if it still exists. Thanks.
Environment
Problem Description
I'm doing a "captive portal"-style setup procedure where it:
Expected Behavior
The
esp_wifi_scan_start()
should succeed and return a list of networksActual Behavior
An error is produced:
Debug Logs