I'm working with an Arduino Nano RP2040 Connect & following this guide:
https://learn.adafruit.com/circuitpytho ... nnect/wifi
Part of the code uses
esp.connect_AP
passing in the ssid & password from the secrets file. But there's no password for the way this kind of device accesses this network. Here's the block of code in the sample code:
while not esp.is_connected:
Code: Select all
try:
esp.connect_AP(secrets["ssid"], secrets["password"])
except RuntimeError as e:
print("could not connect to AP, retrying: ", e)
continue
BTW: I've used CircuitPython on Raspberry Pis on this network via a similar scheme. The Pis connect to the network, though, using the spa_supplicant.conf file, not anything in CircuitPython. If it helps, here's what I need to include in the wpa_supplicant.conf file to get a Pi that has had its MAC address pre-approved, to connect to the university's Wi-Fi:
Code: Select all
network={
ssid="BostonCollege"
key_mgmt=NONE
id_str="location1"
}
John