I have a board with an ESP8266 chip running Micropython firmware v1.8.7. My requirement is to use WebREPL via the University Wi-Fi, which uses WPA2 Enterprise EAP-MSCHAPv2 authentication. My Google-fu so far has informed me that Arduino users have been able to connect to WPA2 Enterprise EAP-TLS (certificate based authentication) (link) but not (SSID, username, pwd) networks.
All the threads I've seen so far on the subject seem to be from mid-2016 at the very latest, so I'm wondering whether someone's been able to figure out how to do this since then. I've never dabbled in network related stuff before (nor am I a great programmer), so all the big words above are pretty new to me. I thus have the following questions:
- Is this just an inherent limitation of the ESP8266? Or can it be done? This discussion seems to suggest it can be done but the capability needs to be coded in.
- Is it possible to somehow branch out a WPA2 Personal connection from the WPA2 Enterprise that can be used by the ESP8266 as well as my PC? What I've tried so far is to attempt a hotspot using Connectify but there's been no luck there.
I appreciate any help you guys can provide. If there's any relevant info I haven't included, please let me know and I'll edit it in.
Edit: @MaximilianGerhardt This is what works for me on a WPA2 Personal:
import network
wlan = network.WLAN(network.STA_IF)
wlan.active(True)
wlan.connect('ssid','pwd')
wlan.ifconfig()
import webrepl
webrepl.start()
On a WPA2 Enterprise, I had hoped changing this line would work, but no joy:
wlan.connect('ssid',auth=WPA2_ENT,'user','pwd')
Thanks, I'll look into the Espressif Non-OS SDK V2.0.0 and see if I can make it work.
esp8266-eduroam
project (github.com/joostd/esp8266-eduroam/blob/master/wpa2e-v20/user/…) and the 22-days old comment at github.com/esp8266/Arduino/issues/1032#issuecomment-267809940 suggests it might be possible with the newest 2.0 espressif SDK (wifi_station_set_enterprise_username()
andwifi_station_set_enterprise_password()
). What code have you tried yet ? – Sacring