I've seen examples for ESP8266 chip Wifi clients logging onto a WPA2 personal network.
However, is it possible for an ESP8266 client to login to an enterprise network?
Since Version 2.0 of the Espressif SDK, ESP8266 can be connected to both EAP and PEAP WPA2 Enterprise networks.
I quote a small guide from GitHub on how to implement the connection:
- Call
wifi_station_set_configto set the configuration of target AP.- Call
wifi_station_set_wpa2_enterprise_auth(1);to enable WPA2_Enterprise authentication.
- For EAP-TLS authentication, call
wifi_station_set_enterprise_cert_keyto set certificate and private key.wifi_station_set_enterprise_usernameis an optional choice, it can be called to set user name.- For EAP-TTLS or EAP-PEAP authentication, call
wifi_station_set_enterprise_usernameandwifi_station_set_enterprise_passwordto set user name and password.wifi_station_set_enterprise_ca_certis an optional choice, it can be called to set root certificate.- Call
wifi_station_connectto connect to target AP.- After being connected to an AP, or failing to connect to AP and on stopped retries, please call the corresponding
wifi_station_clear_enterprise_XXXAPIs to release the resources.
The feature was recently added and is not mature. It currently supports certificate (EAP-TLS) but not password (PEAP) authentication.
References:
