Skip to content

Unable to connect to WPA2 Enterprise network. #105

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

Open
ktbaker opened this issue Mar 2, 2020 · 12 comments
Open

Unable to connect to WPA2 Enterprise network. #105

ktbaker opened this issue Mar 2, 2020 · 12 comments
Labels
type: imperfection Perceived defect in any part of project

Comments

@ktbaker
Copy link

ktbaker commented Mar 2, 2020

My Arduino Uno Wifi Rev2 won't connect to my university's WPA2 Enterprise network. I'm using the library's beginEnterprise() function. My sketch is based on the examples from the library.

The authentication of the network is PEAP/MSCHAPV2.

I've updated the firmware on my board to the latest version.

My board connects to regular networks using the function begin() so it's also not a hardware issue.

When I run the "ScanNetworks" example, the network I'm trying to connect to is listed, and it shows its encryption as "Unknown".

Additional context

I tried powering the board with an external power source.


I tried many different credentials.

Additional reports

Related

@wiegerthefarmer
Copy link

@sandeepmistry Any thoughts? I see you created the WPA2 Enterprise support.

@facchinm
Copy link
Contributor

Hi Katie,
I'm a bit bothered by the Unknown encryption on scan. How does the network show up on a laptop / smartphone? We tested extensively on eduroam network but in that case the encryption field is always Open

@facchinm facchinm added the status: waiting for information More information must be provided before work can proceed label Mar 10, 2020
@ktbaker
Copy link
Author

ktbaker commented Mar 12, 2020

Hi, I'm a little confused by your question. On my laptop and smartphone the network shows up just like how any other network shows up? In testing, I was trying to connect to eduroam network as well and its' encryption was also unknown.

@facchinm
Copy link
Contributor

Sorry for the not so clear question, I was referring to something like this.

Is the board working in the eduroam network you tested?

@ktbaker
Copy link
Author

ktbaker commented Mar 18, 2020

I am on Apple devices so this information is not available but the security is 802.1x PEAP as per the university's website. The board does not connect to eduroam network.

@invalidflaw

This comment has been minimized.

@forcecodema
Copy link

Hi, I also have the problem with Arduino MKR WiFi 1010 (NINA Firmware 1.4.8) and connecting to WPA2 Enterprise network.
The following example code just runs forever. I can successfully gain access to the network using Apple and Android phone or Windows 10 PC. I am happy to provide some more info If that would help...

while (status != WL_CONNECTED) {
    Serial.print("Connecting to network: ");
    Serial.println(ssid);
    status = WiFi.beginEnterprise(ssid, user, pass);
    delay(10000);
}

@per1234 per1234 added type: imperfection Perceived defect in any part of project and removed status: waiting for information More information must be provided before work can proceed labels Mar 2, 2022
@CJacob314
Copy link

Hi Katie, I'm a bit bothered by the Unknown encryption on scan. How does the network show up on a laptop / smartphone? We tested extensively on eduroam network but in that case the encryption field is always Open

I am having the exact same issue, and both the ScanNetworks.ino and ScanNetworksAdvanced.ino code also give encryption types of "Unknown" for eduroam, and "None" for all non-enterprise networks. I wanted to add, however, that on both the ScanNetwork example code files, which can be seen here for example, there is a comment which says:

/*
 This example prints the board's MAC address, and
 scans for available WiFi networks using the NINA module.
 Every ten seconds, it scans again. It doesn't actually
 connect to any network, so no encryption scheme is specified.
...
*/

This seems to imply that no encryption will be given for any networks as the chip does not actually attempt to connect to any of them.

Has anyone found any solutions to this problem? My Arduino Uno Wifi Rev2 connects just fine on my home WiFi, but I would like to have it connect to my University WiFi as well.

@ChathuZ

This comment has been minimized.

@CJacob314

This comment has been minimized.

@ChathuZ

This comment has been minimized.

@Brexei
Copy link

Brexei commented Mar 21, 2025

I have the same problem and have not found a solution yet.
Our system administrator looked into the problem and concluded that WiFi.beginEnterprise routines are incomplete and they are not sufficient to connect to a pwa2 enterprise wifi network. The routines are just a few lines of code, but wpa2 enterprise connection requires much more and has two levels of validation.
As i am not a programmer, i cannot verify this. But please take a look and see if the code in the library is the proper one for connecting to such networks. Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

9 participants