Is there a way to connect to a NodeMCU 0.9 to WPA2 Enterprise like Eduroam?
Now I'm using the Arduino IDE 1.8.5 with the library: ESP8266WiFi.h
In this way I simply connect to a personal WPA2 with pre-shared key:
#include <ESP8266WiFi.h>
const char* ssid = "ssid";
const char* password = "password";
void connectToWifi() {
WiFi.begin(ssid, password);
while (WiFi.status() != WL_CONNECTED) {
delay(500);
}
Serial.print("Connected as "+WiFi.localIP());
}
EDIT: Here some more information about Eduroam:
network={
ssid="eduroam"
proto=WPA RSN
key_mgmt=WPA-EAP
auth_alg=OPEN
pairwise=CCMP TKIP
eap=TLS
ca_cert="~/ca.pem"
private_key="~/wifiCert.p12"
private_key_passwd="myPassw0rd"
phase2="auth=MSCHAPV2"
identity="My@Identity.com"
}
ca.pem and wifiCert.p12 are 2 certificate needed to login.