Open dpslwk opened 2 years ago
There's a convenience API in wifi
so you don't need to import settings yourself, might be easier to use that?
wifi.save_defaults(ssid, password, username)
username should be None
for open or PSK SSIDs, and should be a string if the SSID is WPA2 Enterprise. password
should be None
for open SSIDs.
Alternatively, use settings.set("wifi_wpa2ent_username", ...)
We're currently using the username field for both the username and identity fields, and leaving esp-idf to figure out whether it's PEAP or TTLS or whatever, it looks like this should be ok for the EMF network (hopefully it also doesn't require a cert up front). Some googling looks like you might need to specify a different identity for eduroam networks, but I doubt we really care about connecting the badge to that.
Needs and update to handle out new WPA-Ent support