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')
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