In the debug output nearing the end of the scan it will report apnum=12 meaning it found 12 SSIDs
Then it calls a function called update_wifi_scan_results() and in that function there is a call to esp_wifi_scan_get_ap_num(&count) which returns 0 in count. Now how can that be? it just found 12....
The 12 SSID is about right for my network, sometimes it finds 11, sometimes 13... but never returns any due to the call to esp_wifi_scan_get_ap_num() which shows zero.
Example of one channel scan ending... this was channel 11
Code: Select all
D (65780) wifi:scan end: arg=0x3ffc7da2, status=0, ss_state=0x3
D (65781) wifi:perform scan: ss_state=0x9, chan<11,0>, dur<0,120>
Code: Select all
D (68190) wifi:scan end: arg=0x3ffc7da2, status=0, ss_state=0x3
D (68191) wifi:filter: set rx policy=4
D (68192) wifi:first chan=1
D (68192) wifi:Send scan done event: status=0, apnum=12 <<-- you can see the 12
Code: Select all
D (36325) network_prov_mgr: Scan finished
D (36329) network_prov_mgr: Scan result empty
I am using IDF 5.3.1 in VSCODE and using Arduino as a component, most the mention functions I am watching are part of the IDF.
Hope someone can help!
Thanks!