Connect pico to wifi without password
Posted: Wed Aug 03, 2022 7:52 pm
Hi
At my university, we have a dedicated iot-network for various sensors and micro-controllers to connect to. This network is protected only by a white-list and uses an empty password. I have several devices connected to this network, including M5-stacks and a Pi 3, with no problems.
However, the Pico W seems to have a problem with the empty password. I can scan the network with no problems:
wlan.scan()
[.... (b'device', b'\x00,\xc8\x87\r@', 11, -77, 0, 1),
(b'eduroam', b'\x00,\xc8\x87\x0ba', 11, -84, 5, 2),
(b'device', b'\x00,\xc8\x87\x0b`', 11, -86, 0, 1),
...]
But when I try to connect, I get this error:
wlan.connect('device')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
OSError: [Errno 1] EPERM
>>>
Also, using an empty string as password gives same result:
wlan.connect('device', '')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
OSError: [Errno 1] EPERM
I can connect the same unit to my home network without problems, so I am fairly sure the Pico works (also, I have confirmed this on two units).
Any suggestions as to what I can do to get around this?
Best regards
Robert
At my university, we have a dedicated iot-network for various sensors and micro-controllers to connect to. This network is protected only by a white-list and uses an empty password. I have several devices connected to this network, including M5-stacks and a Pi 3, with no problems.
However, the Pico W seems to have a problem with the empty password. I can scan the network with no problems:
wlan.scan()
[.... (b'device', b'\x00,\xc8\x87\r@', 11, -77, 0, 1),
(b'eduroam', b'\x00,\xc8\x87\x0ba', 11, -84, 5, 2),
(b'device', b'\x00,\xc8\x87\x0b`', 11, -86, 0, 1),
...]
But when I try to connect, I get this error:
wlan.connect('device')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
OSError: [Errno 1] EPERM
>>>
Also, using an empty string as password gives same result:
wlan.connect('device', '')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
OSError: [Errno 1] EPERM
I can connect the same unit to my home network without problems, so I am fairly sure the Pico works (also, I have confirmed this on two units).
Any suggestions as to what I can do to get around this?
Best regards
Robert