Problem with ssid of Pi Pico network solved
Been having problems with ssid of network Sent message below to Perplexity:
I'm now having troble getting my Pi PicoW AP network to be recognized. Whatever I call it, the name of the network comes up as PICO241F. On the PC and on my iPhone. Below is the simplest initiation of an AP network that I can write but still get that strange 'PICO241F' name. Have tried resetting everything but not yet reinstalled micropython on my pi pico. This used to work but not now. Can you help me name my own Pi PIco network with my choice of ssid?
#Want simplest AP network connection
import network
import socket
ssid = 'NAME' #This gets changed to PICO24F
password = 'PASSWORD'
# Set up access point
ap = network.WLAN(network.AP_IF)
ap.active(True)
ap.config(essid=ssid, password=password)
# Wait for connection
while not ap.isconnected():
pass
print('AP Mode Is Active, You can Now Connect')
print('IP Address To Connect to::', ap.ifconfig()[0])
#above all works but get the wrong ssid
---------------------------so I tried this below----------------
#Want simplest AP network connection
import network
import socket
ssid = 'NAME'
password = 'PASSWORD'
# Set up access point
ap = network.WLAN(network.AP_IF)
ap.active(False) # Deactivate first
ap.config(essid=ssid, password=password)
print("Configured SSID:", ap.config('essid'))
ap.active(True)
# Wait for connection
while not ap.isconnected():
pass
print('AP Mode Is Active, You can Now Connect')
print('IP Address To Connect to::', ap.ifconfig()[0])
Comments
Post a Comment