docs: WLAN module, undocumented methods
Documentation URL
https://docs.micropython.org/en/latest/library/network.WLAN.html
Description
MP 1.23 on RP2
My program creates an instance of WiFi client and prints its interface:
nic = WLAN(STA_IF)
print(dir(nic))
Output:
['class', 'IF_AP', 'IF_STA', 'PM_NONE', 'PM_PERFORMANCE', 'PM_POWERSAVE', 'SEC_OPEN', 'SEC_WPA_WPA2', 'active', 'config', 'connect', 'deinit', 'disconnect', 'ifconfig', 'ioctl', 'ipconfig', 'isconnected', 'scan', 'send_ethernet', 'status']
The doc doesn't explain these methods:
- deinit
- ioctl
- send_ethernet
Essential info: is it safe to call deinit() to tear down a WLAN instance and free the resources used by it?
Same questions regarding AP_IF, I suppose.
Code of Conduct
Yes, I agree
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