Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

esp_wifi_sta_wpa2_ent_enable() needs a parameters #3

Open
PaulRowntree opened this issue Jan 29, 2018 · 2 comments
Open

esp_wifi_sta_wpa2_ent_enable() needs a parameters #3

PaulRowntree opened this issue Jan 29, 2018 · 2 comments

Comments

@PaulRowntree
Copy link

Hi! The xxx_enable() call in the wpa2.ino example requires a parameter describing an algorithm. Could you please advise on how to continue? Thanks!

extern const wpa2_crypto_funcs_t g_wifi_default_wpa2_crypto_funcs;

typedef struct {
    const wpa2_crypto_funcs_t *crypto_funcs;
}esp_wpa2_config_t;

#define WPA2_CONFIG_INIT_DEFAULT() { \
    .crypto_funcs = &g_wifi_default_wpa2_crypto_funcs \
}

/**
  * @brief  Enable wpa2 enterprise authentication.
  *
  * @attention 1. wpa2 enterprise authentication can only be used when ESP32 station is enabled.
  * @attention 2. wpa2 enterprise authentication can only support TLS, PEAP-MSCHAPv2 and TTLS-MSCHAPv2 method.
  *
  * @return
  *    - ESP_ERR_WIFI_OK: succeed.
  *    - ESP_ERR_WIFI_NO_MEM: fail(internal memory malloc fail)
  */
esp_err_t esp_wifi_sta_wpa2_ent_enable(const esp_wpa2_config_t *config);

@mrmonteith
Copy link

I have this issue too:
error: too few arguments to function 'esp_err_t esp_wifi_sta_wpa2_ent_enable(const esp_wpa2_config_t*)'
Hoping to get past this. Trying to connect an ESP32 to our work network as a proof-of-concept for IoT projects at work.

@mrmonteith
Copy link

I found how to set this. Just not sure where in the code exactly it goes.
esp_wpa2_config_t config = WPA2_CONFIG_INIT_DEFAULT();
esp_wifi_sta_wpa2_ent_enable(&config);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants