I have a question about the network module in MicroPython.
Some time ago I wrote a program to connect to my PicoW.
After getting a new router it no longer worked, which at the time I assumed to be a router issue.
I recently tried and it no longer worked, so I tried a different program (from a tutorial) which did!
After some testing I determined that my problem seemed to be because I was using a PSK.
(I don't put passwords in text files and generated PSK for all my networks - these work on Raspberry Pi OS).
I have used
`wlan.connect(ssid, psk)`
`wlan.connect(ssid, password)`
The RP2 documentation for wlan.connect() is wlan.connect(ssid, key), although no detail about acceptable values for parameters.
My question is whether it is possible to use a PSK (a 256 bit value) on MicroPython. On Raspberry Pi OS I set as a 64 character string.
Some time ago I wrote a program to connect to my PicoW.
After getting a new router it no longer worked, which at the time I assumed to be a router issue.
I recently tried and it no longer worked, so I tried a different program (from a tutorial) which did!
After some testing I determined that my problem seemed to be because I was using a PSK.
(I don't put passwords in text files and generated PSK for all my networks - these work on Raspberry Pi OS).
I have used
`wlan.connect(ssid, psk)`
`wlan.connect(ssid, password)`
The RP2 documentation for wlan.connect() is wlan.connect(ssid, key), although no detail about acceptable values for parameters.
My question is whether it is possible to use a PSK (a 256 bit value) on MicroPython. On Raspberry Pi OS I set as a 64 character string.
Statistics: Posted by Milliways — Wed Jul 29, 2026 10:56 am — Replies 1 — Views 67





