WPA2 Enterprise doesn't work in v2.0.0

Cust.Perf
Posts: 1
Joined: Thu Sep 02, 2021 11:23 am

WPA2 Enterprise doesn't work in v2.0.0

Postby Cust.Perf » Sat Sep 18, 2021 2:26 pm

Hi, has anybody been able to bring the WPA2 Enterprise to work with the new Version v2.0.0 ?
Is any workaround possible?

We had a working code according to the example in the library v1.0.6
We had to switch from an ESP32 to ESP32-C3 which resulted in an arduino-esp32 core upgrade to v2.0.0

v1.0.6
https://github.com/espressif/arduino-es ... rprise.ino
  1.   WiFi.disconnect(true);
  2.   WiFi.mode(WIFI_STA);
  3.   esp_wifi_sta_wpa2_ent_set_identity((uint8_t *)EAP_IDENTITY, strlen(EAP_IDENTITY));
  4.   esp_wifi_sta_wpa2_ent_set_username((uint8_t *)EAP_IDENTITY, strlen(EAP_IDENTITY));
  5.   esp_wifi_sta_wpa2_ent_set_password((uint8_t *)EAP_PASSWORD, strlen(EAP_PASSWORD));
  6.   esp_wpa2_config_t config = WPA2_CONFIG_INIT_DEFAULT();
  7.   esp_wifi_sta_wpa2_ent_enable(&config);
  8.   WiFi.begin(ssid);

But now with the changes of the core which were made to "esp_wpa2.h" the function esp_wifi_sta_wpa2_ent_enable() doesn't take any argument anymore.

v2.0.0
https://github.com/espressif/arduino-es ... rprise.ino
  1. WiFi.disconnect(true);
  2.   WiFi.mode(WIFI_STA);
  3.   esp_wifi_sta_wpa2_ent_set_identity((uint8_t *)EAP_IDENTITY, strlen(EAP_IDENTITY));
  4.   esp_wifi_sta_wpa2_ent_set_username((uint8_t *)EAP_IDENTITY, strlen(EAP_IDENTITY));
  5.   esp_wifi_sta_wpa2_ent_set_password((uint8_t *)EAP_PASSWORD, strlen(EAP_PASSWORD));
  6.   esp_wifi_sta_wpa2_ent_enable();
  7.   WiFi.begin(ssid);

The code of v2.0.0 doesn't work for both the ESP32 nor the ESP32-C3

Who is online

Users browsing this forum: No registered users and 62 guests