I can't help other than to say I have been using the latest 1.22 and 1.23 previews of MicroPython without seeing regression errors; things not working which once did work.
The 'network' module is baked into the Pico W firmware and I have never observed it disappearing. If it wasn't there it suggests the wrong UF2 was bootloaded no matter what was thought to be bootloaded or reported to have been. None the less I downloaded and bootloaded 'RPI_PICO_W-20240105-v1.22.1.uf2' and 'network' was there for me.
The GitHub discussion suggests a whole raft of issues. It would be best to deal with them one by one, as suggested in that discussion.
One point on that, after a connection your code seems to report ...
network config: ('0.0.0.0', '255.255.255.0', '192.168.0.1', '8.8.8.8')
That '0.0.0.0' suggests something isn't right when it comes to connecting to the router; it's not been allocated an IP address. I have no idea why not.
This is what I see, entirely as expected ...
The 'network' module is baked into the Pico W firmware and I have never observed it disappearing. If it wasn't there it suggests the wrong UF2 was bootloaded no matter what was thought to be bootloaded or reported to have been. None the less I downloaded and bootloaded 'RPI_PICO_W-20240105-v1.22.1.uf2' and 'network' was there for me.
The GitHub discussion suggests a whole raft of issues. It would be best to deal with them one by one, as suggested in that discussion.
One point on that, after a connection your code seems to report ...
network config: ('0.0.0.0', '255.255.255.0', '192.168.0.1', '8.8.8.8')
That '0.0.0.0' suggests something isn't right when it comes to connecting to the router; it's not been allocated an IP address. I have no idea why not.
This is what I see, entirely as expected ...
Code:
MPY: soft rebootMicroPython v1.22.1 on 2024-01-05; Raspberry Pi Pico W with RP2040Type "help()" for more information.>>> import network>>> wlan = network.WLAN(network.STA_IF)>>> wlan.active(True)>>> import secrets>>> wlan.connect(secrets.SSID, secrets.PASSWORD)>>> while wlan.status() != 3 : pass...>>> wlan.ifconfig()('192.168.0.212', '255.255.255.0', '192.168.0.1', '192.168.0.1')>>>
Statistics: Posted by hippy — Sun Jan 21, 2024 3:50 pm