I wanted to limit the possible channels the station is scanning when trying to connect using the esp_wifi_set_country API:
Code: Select all
wifi_country_t country = {
.cc = "EU",
.schan = 3,
.nchan = 1,
.policy = WIFI_COUNTRY_POLICY_AUTO,
};
int ret = esp_wifi_set_country(&country); // returns ESP_ERR_WIFI_ARG
Could somebody please give an update on how this API is supposed to work?
Hope it is not a problem to ask questions about APIs in master branch!
Thanks for all the good stuff thats coming into the ESP-IDF!