Skip to content

Commit

Permalink
Enumeration change in newer IDF's.
Browse files Browse the repository at this point in the history
  • Loading branch information
tschak909 committed Jul 25, 2021
1 parent 57d973b commit 622f0e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/hardware/fnWiFi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include "freertos/event_groups.h"

#include "esp_system.h"
#include "esp_wifi.h"
#include <esp_wifi.h>
#include "esp_event.h"
#include "esp_log.h"

Expand Down Expand Up @@ -146,7 +146,7 @@ int WiFiManager::connect(const char *ssid, const char *password)
// Debug_printf("WiFi config double-check: \"%s\", \"%s\"\n", (char *)wifi_config.sta.ssid, (char *)wifi_config.sta.password );

wifi_config.sta.pmf_cfg.capable = true;
ESP_ERROR_CHECK(esp_wifi_set_config(ESP_IF_WIFI_STA, &wifi_config));
ESP_ERROR_CHECK(esp_wifi_set_config(WIFI_IF_STA, &wifi_config));
}

// Now connect
Expand Down

4 comments on commit 622f0e4

@rickAllDev
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just installed latest esp-idf version of master branch (v4.4-dev-2487-g8131d6f46) but I am still receiving this error
initializing argument 1 of 'esp_err_t esp_wifi_set_config(wifi_interface_t, wifi_config_t*)'
esp_err_t esp_wifi_set_config(wifi_interface_t interface, wifi_config_t *conf);

I do not have much experience with git versioning so I may have mis-understood what this commit means. Should I expect this?

@tschak909
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you may be running an old IDF. You may need to upgrade. due to bluetooth stack expanding, you should disable bluetooth in your platformio.ini.

@rickAllDev
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry, think I may be looking at the wrong commit?
I'm using the v4 master branch, vscode, eps-idf without platformio. this error is occurring for me when I set wifi config.
ESP_ERROR_CHECK(esp_wifi_set_config(ESP_IF_WIFI_STA, &wifi_config));

@jlandivar
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

THANKS!!!

Please sign in to comment.