-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Add an overload of WiFi.begin to support specifying a WPA2 EAP-TTLS phase 2 method #7915
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
Comments
@semicolonTransistor |
Possibly relates to #8760. Lets evaluate this and set up the milestone. |
Hello, can you please validate this against 3.0.0-RC1 version? Thanks |
I'm sorry for not getting back to you sooner. I tried the 3.0.0-RC1 version and it didn't appear to change anything. A separate function call is still required to set the TTLS phase 2 method. The connection sequence is shown in the snippet below. Without the first function call the connection fails to connect.
If there is another way I should be doing this please let me know, I'll be happy to test it out. |
@semicolonTransistor so that order of calls works for you? How do you imagine that option be added? Like extra argument to |
Yes, the 2 calls in the previous reply is working for connection to the network that requires PAP. An extra argument to |
@me-no-dev are here any actions points? |
@VojtechBartoska will try to add it for RC3/final |
@semicolonTransistor how about WiFi.begin(ssid, WPA2_AUTH_TTLS, EAP_IDENTITY, EAP_USERNAME, EAP_PASSWORD, NULL, NULL, NULL, ESP_EAP_TTLS_PHASE2_PAP); |
Arduino API: WiFi.beginEnterprise() Description Initializes the WiFiNINA library’s network settings for a common WPA2 Enterprise network with username and password authentication (PEAP/MSCHAPv2). Syntax Parameters Returns |
it's not the same thing. |
Related area
WiFi
Hardware specification
All WiFi capbale SoCs
Is your feature request related to a problem?
The
WiFi.begin()
overload for WPA2-Enterprise added in #6398 seems to default to either MSCHAPV2 or MSCHAP as the phase 2 method for EAP-TTLS. There is no parameter to change the TTLS phase 2 method. However, my university network requires using PAP as the phase 2 method. Currently, I am working around this by callingesp_wifi_sta_wpa2_ent_set_ttls_phase2_method(ESP_EAP_TTLS_PHASE2_PAP);
before callingWiFi.begin(...)
I believe similar problems have been reported in #6427 and #5483.
Describe the solution you'd like
It would be nice if an overload of WiFi.begin() can be added that accepts a
esp_eap_ttls_phase2_types
as a parameter so the user can select which TTLS phase 2 method they would like to use.Alternatively,
WiFi.begin()
could try all available phase 2 options for TTLS. Which could make it easier to use and more "plug and play". Although I am not sure if that is a good idea since I have very limited knowledge of WPA2-Enterprise.Describe alternatives you've considered
I have used the following workaround to connect to my school network
esp_wifi_sta_wpa2_ent_set_ttls_phase2_method(ESP_EAP_TTLS_PHASE2_PAP); WiFi.begin(ssid, WPA2_AUTH_TTLS, EAP_IDENTITY, EAP_USERNAME, EAP_PASSWORD);
This works although it took considerable research to find. I think the WiFi library would be more user-friendly if the option is available in
WiFi.begin()
and didn't require a separate call to an ESP-IDF function.Additional context
No response
I have checked existing list of Feature requests and the Contribution Guide
The text was updated successfully, but these errors were encountered: