Hello,
I’m using an esp32 dev module to access wpa2 enterprise network with peap.
When using arduino ide, espressif esp32 core 2.0.1, everything works fine, more specificaly, I can use
esp_err_t esp_wifi_sta_wpa2_ent_enable(void); from esp_wpa2.h
However, when trying the same code in platformio, I get the “too few arguments to function 'esp_err_t esp_wifi_sta_wpa2_ent_enable(const esp_wpa2_config_t*)”
I’ve tried the fix:
esp_wpa2_config_t config = WPA2_CONFIG_INIT_DEFAULT();
esp_wifi_sta_wpa2_ent_enable(&config);
The code compile, but esp cannot connect to wifi.
I guess I should make platformio use https://github.com/espressif/arduino-esp32 but I don’t know how to achieve this…
Any help would be welcome