ESP32 station_example_main.c from examples fails to compile

tomkcook
Posts: 5
Joined: Sun Jun 11, 2017 12:25 pm

ESP32 station_example_main.c from examples fails to compile

Postby tomkcook » Tue Aug 02, 2022 2:47 pm

The following statement fails to compile:

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
        }
    };
The compile errors are:

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
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?

tomkcook
Posts: 5
Joined: Sun Jun 11, 2017 12:25 pm

Re: ESP32 station_example_main.c from examples fails to compile

Postby tomkcook » Tue Aug 02, 2022 3:31 pm

Never mind, I see the feature in question was only added in June. I think it's just that the PlatformIO package for ESP32 IoT hasn't caught up yet.

Who is online

Users browsing this forum: Bing [Bot], Majestic-12 [Bot] and 106 guests