7

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?

jhtong
  • 1,529
  • 4
  • 23
  • 34

2 Answers2

4

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:

  1. Call wifi_station_set_config to set the configuration of target AP.
  2. 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 and wifi_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.
  3. Call wifi_station_connect to connect to target AP.
  4. 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.
gre_gor
  • 6,669
  • 9
  • 47
  • 52
pgmank
  • 5,303
  • 5
  • 36
  • 52
2

The feature was recently added and is not mature. It currently supports certificate (EAP-TLS) but not password (PEAP) authentication.

References:

Luno
  • 29
  • 3