I have made sketch for ESP32 board that let it connect to WPA/WPA2 Enterprise network. Tested under local WLAN with RADIUS server and Eduroam. Not tested under network with TACACS, only RADIUS with methods: PEAP + MsCHAPv2
Enjoy and let me know if it is working in your university, local 802.1x network. Some users had problems in USA and Russia.
Hey,
first of all thank you for your work!
I got a problem according to the settings/config.
I need to connect to my network with the following config:
EAP-Method:
PEAP
Phase 2-Authentication:
MSCHAPV2 CA-certificate: do not validate
and of course identy and password
But in your code it's just the default config that I can't change.
esp_wpa2_config_t config = WPA2_CONFIG_INIT_DEFAULT(); //set config settings to default
esp_wifi_sta_wpa2_ent_enable(&config); //set config settings to enable function
Is the config in any way accessable and changeable?
PS: Sorry for my bad english and the not 100% accurate technical terms.
I have made some examples to popular IoT portals, etc for enterprise connections to eduroam networks or similar under 802.1x (WPA/WPA2 Enterprise) with ESP32 and June 2018 Arduino core.
Available services in repo:
Cayenne MQTT - MySensors
Amazon web services IoT (AWS-IoT)
Microsoft Azure IoT
AskSensors
IBM Watson Bluemix
ThinX Cloud
ThingSpeak
ThingsBoard
ThingWorx
Samsung Artik IoT
User's HTTP/HTTPS requests to own backend or MQTT connection with topic posting.
Today I have tested newest Arduino core for ESP32 and it worked great! Connection sucessful under PEAP + MsCHAPv2. So.. You don't need to downgrade your Arduino cores for ESP32 boards.
martinius96:
Today I have tested newest Arduino core for ESP32 and it worked great! Connection sucessful under PEAP + MsCHAPv2. So.. You don't need to downgrade your Arduino cores for ESP32 boards.
Do you think this would work for a ESP8266? Also, I can't see the code anywhere, and are there any libraries to download with it?
No, it will not work.
you need to use esp_wpa2.h library.
But you need to use all dependencies, and it will not work, cuz. ESP8266 don't have enough RAM for that.
Hi I have been battling with ESP8266 and the wpa2_enterprise.h and have not had much luck in connecting to my office wifi. We have a "WPA2 enterprise PEAP + MsCHAPv2" network. This needs a SSID, username eg: fristname.lastname and a password to login to the network. I am planning of buying a "HiLetgo ESP-WROOM-32 ESP32 ESP-32S Development Board". Would "esp_wpa2.h library" work on this board for me to connect this the network? Any pointers are much appreciated.
I'm trying to figure out how to allow ESP8266 to associate with a WPA2 Enterprise (username/password based) Wifi network.
Seems like things are starting to connect, but at some point nothing happens.
RADIUS server, which is actually a Windows Server 2019 NPS, receives the request, authenticates it successfully, but then, nothing more ... no IP address (auto or manual) on ESP8266.