We get this crash:
path/to/autoplant/autoplant/autoplant.ino: In function 'void connect_wifi()':
autoplant:85:5: error: 'esp_wifi_sta_wpa2_ent_set_identity' was not declared in this scope
esp_wifi_sta_wpa2_ent_set_identity((uint8_t *)user, strlen(user));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
autoplant:86:5: error: 'esp_wifi_sta_wpa2_ent_set_username' was not declared in this scope
esp_wifi_sta_wpa2_ent_set_username((uint8_t *)user, strlen(user));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
autoplant:87:5: error: 'esp_wifi_sta_wpa2_ent_set_password' was not declared in this scope
esp_wifi_sta_wpa2_ent_set_password((uint8_t *)pass, strlen(pass));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
autoplant:88:2: error: 'esp_wpa2_config_t' was not declared in this scope
esp_wpa2_config_t config = WPA2_CONFIG_INIT_DEFAULT();
^~~~~~~~~~~~~~~~~
path/to/autoplant/autoplant/autoplant.ino:88:2: note: suggested alternative: 'esp_eth_config_t'
esp_wpa2_config_t config = WPA2_CONFIG_INIT_DEFAULT();
^~~~~~~~~~~~~~~~~
esp_eth_config_t
autoplant:89:32: error: 'config' was not declared in this scope
esp_wifi_sta_wpa2_ent_enable(&config);
^~~~~~
path/to/autoplant/autoplant/autoplant.ino:89:32: note: suggested alternative: 'confstr'
esp_wifi_sta_wpa2_ent_enable(&config);
^~~~~~
confstr
autoplant:89:2: error: 'esp_wifi_sta_wpa2_ent_enable' was not declared in this scope
esp_wifi_sta_wpa2_ent_enable(&config);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
path/to/autoplant/autoplant/autoplant.ino:89:2: note: suggested alternative: 'gpio_pin_wakeup_enable'
esp_wifi_sta_wpa2_ent_enable(&config);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
gpio_pin_wakeup_enable
Multiple libraries were found for "WiFi.h"
Used: /home/USERNAME/.arduino15/packages/esp32/hardware/esp32/2.0.2/libraries/WiFi
Not used: /home/USERNAME/Downloads/arduino-1.8.16/libraries/WiFi
exit status 1
'esp_wifi_sta_wpa2_ent_set_identity' was not declared in this scope