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
WLAN config parameter 'hidden' unknown
Port, board and/or hardware
Raspberry Pico W
MicroPython version
MicroPython v1.25.0 on 2025-04-15; Raspberry Pi Pico W with RP2040
Reproduction
- Try to set parameter 'hidden' via WLAN.config()
- Parameter unknown error
Expected behaviour
An AP with hidden SSID
Observed behaviour
Parameter unknown
Additional Information
According to the docs there should be a config parameter 'hidden' for the WLAN class, which supposingly hides the SSID when running in IF_AP mode.
However, in reality this doesn't seem to exist, and results in an error 'unknown config param'.
The Gibhub repo also doesn't show it in code (as far as I can tell).
Neither could I see a param with a different name meant for this purpose.
Perhaps this was overlooked..?
Thanks for following this up! :D
Code of Conduct
Yes, I agree