wpa2_enterprise password in esp-idf-v2.0-rc1

current
Posts: 1
Joined: Tue Jan 17, 2017 6:47 pm

wpa2_enterprise password in esp-idf-v2.0-rc1

Postby current » Fri Jan 27, 2017 10:31 pm

We have been setting up the SDK and testing capability of the esp32. Nice device.
When running the wifi example "wpa2_enterprise" it seems that the code as-is does not load the password in the wifi_config setup.
So testing the connection without the password did not get an IP address.
Here is what was changed... we added the password and bssid_set.

Code: Select all

    
    wifi_config_t wifi_config = {
        .sta = {
            .ssid = EXAMPLE_WIFI_SSID,
            .password = EXAMPLE_EAP_PASSWORD,
            .bssid_set = 0

      	  },
        };
Was the code supposed to get the password from somewhere else?
Thanks.

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: esp-idf-v2.0-rc1

Postby WiFive » Sat Jan 28, 2017 2:46 am

What is eap_method? Does it matter if it is a valid password or just non null?

You would think

Code: Select all

esp_wifi_sta_wpa2_ent_set_password((uint8_t *)EXAMPLE_EAP_PASSWORD, strlen(EXAMPLE_EAP_PASSWORD))
should take care of it.

PS can you edit thread title to be more appropriate

Who is online

Users browsing this forum: No registered users and 126 guests