import socket
import network
ssid = 'PICOlo amore'
password = '12345678'
led = Pin(15, Pin.OUT)
ap = network.WLAN(network.AP_IF)
ap.active(False)
ap.active(True)
ap.config(essid=ssid, password=password)
while ap.active == False:
pass
print('Access point active')
print(ap.ifconfig())
I wrote this simple code to test Access Point on my Raspberry Pi Pico W, but it only works when I run the script manually. I uploaded this as main.py on pico and it does create an Access Point but instead of “PICOlo amore” I get “PICO3D53” as SSID and the password doesn’t work. But as soon as I run the code myself, it works fine. Please help me fix this before I break this board ????