ESP32 station_example_main.c from examples fails to compile
Posted: Tue Aug 02, 2022 2:47 pm
The following statement fails to compile:
The compile errors are:
I'm building using PlatformIO in VSCode, using the espressif32 PlatformIO platform version 5.0.0. I've selected the "Espressif IoT Development Framework" in the project configuration.
Is this a problem with the example, or is it PlatformIO-specific?
Code: Select all
wifi_config_t wifi_config = {
.sta = {
.ssid = "TrueSpeedUltra-4YJNX",
.password = "3FKC5R54EFGR",
.threshold.authmode = ESP_WIFI_SCAN_AUTH_MODE_THRESHOLD,
.sae_pwe_h2e = WPA3_SAE_PWE_BOTH
}
};
Code: Select all
src/main.c:66:14: error: 'wifi_sta_config_t' {aka 'struct <anonymous>'} has no member named 'sae_pwe_h2e'
.sae_pwe_h2e = WPA3_SAE_PWE_BOTH
^~~~~~~~~~~
src/main.c:66:28: error: 'WPA3_SAE_PWE_BOTH' undeclared (first use in this function)
.sae_pwe_h2e = WPA3_SAE_PWE_BOTH
Is this a problem with the example, or is it PlatformIO-specific?