QUERY · ISSUE
RP2040: wlan.scan results disconnected from documentation and faulty
bugport-rp2
When running wlan.scan on a Pico_w (MicroPython v1.19.1-966-g05bb26010 on 2023-03-13; Raspberry Pi Pico W with RP2040, also on earlier nightly builds), the output is disconnect from the documentation. Examples:
- "security": value 5 is returned (whereas doc offers only values 0..4);
- "hidden": values 2, 3 sometimes 5 is returned - on a non_hidden network - whereas doc offers only value 0,1;
script used:
import network
station = network.WLAN(network.STA_IF)
station.active(True)
active_ssid = station.scan()
for item in enumerate(active_ssid):
print(item)
station.disconnect()
CANDIDATE · ISSUE
Pi Pico W WLAN set hostname in STA
Please help, cannot set hostrname in Pi Pico W
firmware:
MicroPython v1.19.1-782-g699477d12 on 2022-12-20; Raspberry Pi Pico W with RP2040
code:
wlan = network.WLAN(network.STA_IF)
wlan.config(hostname="mypicow")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ValueError: unknown config param