0

For a teaching demo about autonomy in scientific research, it will likely be a major blocker if students cannot connect the Pico W to their school's WiFi.

Someone suggested MAC spoofing, and I agree that this seems the easiest way to go; however, I also wonder if there's a way to connect a Pico W via WPA authentication to a network more directly.

Any additional thoughts or suggestions here? Any example code? I'd like to minimize the number of additional steps that a user needs to take to set up a network connection.

Related:

Sterling
  • 109
  • 4

1 Answers1

0

I found something that could be of help

https://docs.pycom.io/tutorials/networks/wlan/#connecting-to-a-wpa2-enterprise-network

Connecting with EAP-TLS:

Before connecting, obtain and copy the public and private keys to the device, e.g. under location /flash/cert. If it is required to validate the server’s public key, an appropriate CA certificate (chain) must also be provided.

from network import WLAN

wlan = WLAN(mode=WLAN.STA) wlan.connect(ssid='mywifi', auth=(WLAN.WPA2_ENT,), identity='myidentity', ca_certs='/flash/cert/ca.pem', keyfile='/flash/cert/client.key', certfile='/flash/cert/client.crt')

Connecting with EAP-PEAP or EAP-TTLS:

In case of EAP-PEAP (or EAP-TTLS), the client key and certificate are not necessary, only a username and password pair. If it is required to validate the server’s public key, an appropriate CA certificate (chain) must also be provided.

from network import WLAN
wlan = WLAN(mode=WLAN.STA)
wlan.connect(ssid='mywifi', auth=(WLAN.WPA2_ENT, 'username', 'password'), [identity='myidentity', ca_certs='/flash/cert/ca.pem'])