QUERY · ISSUE
ESP32 WLAN.scan() returns incorrect hidden flag
bug
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')
CANDIDATE · PULL REQUEST
esp8266: Updated documentation for esp.scan()
I've added an explanation of the requirement for the radio to be in station or station+AP mode, and enumerated the possible return values for authentication mode and hidden, based on the SDK docs.
Having written this I'm wondering whether there should be MicroPython constants for the five authmodes and for the hidden flag, but I leave that for others to decide...