docs: WLAN.scan() results on RP2/PICO_W with 1.24.1
Documentation URL
https://docs.micropython.org/en/latest/library/network.WLAN.html
Description
The documentation report the following
There are five values for security:
0 – open
1 – WEP
2 – WPA-PSK
3 – WPA2-PSK
4 – WPA/WPA2-PSK
and two for hidden:
0 – visible
1 – hidden
While using the WLAN.scan() function, I got the following results:
Most of the networks in my neighbourhood are reporting
security = 5
and hidden:
1 - Most of them, and by the way, the networks are visible (so, they should be 0)
2 - seems hidden
5 - visible (homekit device)
7 - One of my home Wi-Fi (made by an old D-Link router)
9 - My main home Wi-Fi (made by a TP-Link router)
Any thoughts ?
Code of Conduct
Yes, I agree
ESP32 WLAN.scan() returns incorrect hidden flag
Hi, new comer to micropython on ESP boards here. Just start to use this and realized the hidden flag in WLAN.scan() result is incorrect.
- The documentation mentioned this flag as
(ssid, bssid, channel, RSSI, authmode, hidden),0 - visible, 1 - hidden; but it's a bool not int. - In my test, all APs in results are always with hidden = False, though apparently the SSID returned is
b''and inwavmonthese are reported as<Hidden SSID>(I mean confirmed as hidden not AP with empty SSID)
uos.uname() = (sysname='esp32', nodename='esp32', release='1.19.1', version='v1.19.1 on 2022-06-18', machine='ESP32 module with ESP32')