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?
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_config
to 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_key
to set certificate and private key.wifi_station_set_enterprise_username
is an optional choice, it can be called to set user name.- For EAP-TTLS or EAP-PEAP authentication, call
wifi_station_set_enterprise_username
andwifi_station_set_enterprise_password
to set user name and password.wifi_station_set_enterprise_ca_cert
is an optional choice, it can be called to set root certificate.- Call
wifi_station_connect
to 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_XXX
APIs 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:
© 2022 - 2024 — McMap. All rights reserved.