What are the other values for 'hidden' from WLAN.scan()?
Posted: Thu Aug 11, 2022 1:50 am
On a PicoW, the WLAN.scan() is returning some interesting results...
'DD', 'xx:xx:xx:xx:xx:x0', 1, -41, 5, 3
'DD', 'xx:xx:xx:xx:xx:x1', 11, -73, 5, 5
'DD', 'xx:xx:xx:xx:xx:x2', 11, -42, 5, 3
Documentation states the values are ssid, bssid, channel, rssid, security, hidden. Where hidden is to be 0 or 1?
Documentation...
WLAN.scan()¶
Scan for the available wireless networks. Hidden networks – where the SSID is not broadcast – will also be scanned if the WLAN interface allows it. Scanning is only possible on STA interface. Returns list of tuples with the information about WiFi access points:
(ssid, bssid, channel, RSSI, security, hidden)
bssid is hardware address of an access point, in binary form, returned as bytes object. You can use binascii.hexlify() to convert it to ASCII form.
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
'DD', 'xx:xx:xx:xx:xx:x0', 1, -41, 5, 3
'DD', 'xx:xx:xx:xx:xx:x1', 11, -73, 5, 5
'DD', 'xx:xx:xx:xx:xx:x2', 11, -42, 5, 3
Documentation states the values are ssid, bssid, channel, rssid, security, hidden. Where hidden is to be 0 or 1?
Documentation...
WLAN.scan()¶
Scan for the available wireless networks. Hidden networks – where the SSID is not broadcast – will also be scanned if the WLAN interface allows it. Scanning is only possible on STA interface. Returns list of tuples with the information about WiFi access points:
(ssid, bssid, channel, RSSI, security, hidden)
bssid is hardware address of an access point, in binary form, returned as bytes object. You can use binascii.hexlify() to convert it to ASCII form.
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