Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to connect to WPA2 Enterprise with Arduino IDE #160

Closed
sebashb opened this issue Jan 31, 2017 · 8 comments
Closed

Is it possible to connect to WPA2 Enterprise with Arduino IDE #160

sebashb opened this issue Jan 31, 2017 · 8 comments
Labels
Area: BT&Wifi BT & Wifi related issues Status: Solved Type: Feature request Feature request for Arduino ESP32

Comments

@sebashb
Copy link

sebashb commented Jan 31, 2017

I'm using the Sparkfun ESP32 Thing board.

@arcao
Copy link
Contributor

arcao commented Feb 9, 2017

ESP32 supports WPA2 enterprise and also IDF supports it, but it's not implemented in Arduino-esp32 yet.

@sebashb
Copy link
Author

sebashb commented Feb 9, 2017

So how can I connect the Sparkfun ESP32 Thing board to a WPA2 enterprise and use it with the Blynk app? Is there any way of doing this or I better wait untill it's implemented?

@SpiraMirabilis
Copy link

Until it is supported on the Arduino IDE you'll have to use Expressif's SDK or better to compile your code that requires WPA 2 enterprise.
https://github.com/espressif/esp-idf/releases

@juliantoledo
Copy link

juliantoledo commented Jun 30, 2017

Is the regular WPA2 supported? I cannot make my board connect to it.

@copercini copercini added the Status: To be implemented Selected for Development label Sep 18, 2017
@martinius96
Copy link
Contributor

martinius96 commented Jun 4, 2018

@juliantoledo @sebasqure
Working with my sketch!
I have tested it on Eduroam + local 802.1x network! Both were on PEAP + MsCHAPv2.
https://github.com/martinius96/ESP32-Eduroam
You can close theme now.

@naikrovek
Copy link

Don't close it, yet. That sketch only works when the WPA2-Enterprise network happens to be setup the way that the ESP32 wants it set up with its default configuration.

The majority of people won't have have that configuration, and the current Arduino software offers no way to change the EAP negotiation method.

@gojimmypi
Copy link

I have enterprise WiFi working with Cisco hardware as shown here:

WiFi.mode(WIFI_STA); // be sure to set mode FIRST
esp_wifi_sta_wpa2_ent_set_identity((uint8_t*)SECRET_EAP_ID, strlen(SECRET_EAP_ID)); //provide identity
esp_wifi_sta_wpa2_ent_set_username((uint8_t*)SECRET_EAP_USERNAME, strlen(SECRET_EAP_USERNAME)); //provide username
esp_wifi_sta_wpa2_ent_set_password((uint8_t*)SECRET_EAP_PASSWORD, strlen(SECRET_EAP_PASSWORD)); //provide password
esp_wpa2_config_t config = WPA2_CONFIG_INIT_DEFAULT();
esp_wifi_sta_wpa2_ent_enable(&config);
WiFi.begin(SECRET_WIFI_SSID);

Note that my SECRET_EAP_USERNAME and SECRET_EAP_ID are the same value and in the format DOMAIN\\username (Microsoft Active Directory Authentication). I was not able to get [email protected] format working as noted in martinius96/ESP32-eduroam#4

I'm using the Visual Micro extension for Visual Studio, but it is essentially the Arduino IDE with a different front end.

@igrr
Copy link
Member

igrr commented Apr 5, 2022

This has been implemented in #6398, thanks @jpswensen for the pull request!

@igrr igrr closed this as completed Apr 5, 2022
@igrr igrr added Type: Feature request Feature request for Arduino ESP32 Area: BT&Wifi BT & Wifi related issues Status: Solved and removed Status: To be implemented Selected for Development Status: Awaiting triage Issue is waiting for triage labels Apr 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: BT&Wifi BT & Wifi related issues Status: Solved Type: Feature request Feature request for Arduino ESP32
Projects
Development

No branches or pull requests

10 participants