Plasma stick 2040 w

With the supplied examples with an Internet connection, I get no connection and this output:

Client None
Connecting to wifi…

With this test program I get an internet connection:

#Pi Pico W
import network
import time
ssid = '*****'
password = '*******'
wlan = network.WLAN(network.STA_IF)
wlan.connect(ssid, password)
print("Waiting to connect:")
while not wlan.isconnected() and wlan.status() >= 0:
    print(".", end="")   

What’s wrong with the sample programs?

Are you sure this is the program you are running? Your output does not seem to match any of the print-statements in the program.