Missing country settings for ESP WIFI
In micropython, there is no way to define in which country the ESP WIFI transmitters operate.
This might create legal problems for anyone using the ESP devices and micropython "out of the box".
The ESP-IDF function call is esp_wifi_set_country(), described in https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/wifi.html#wi-fi-country-code.
Current uPy sources have no call to esp_wifi_set_country() - I searched *.[hc] for it.
The issue had been discussed in https://forum.micropython.org/viewtopic.php?f=18&t=10388
network.country availability
Hi
Please see
https://github.com/orgs/micropython/discussions/11548
@glenn20 wrote:
Oh, I nearly forgot.... re. Question 4... the country setting is not currently used for micropython on the esp8266. In fact, it is only used currently for the cyw43 wifi driver (eg. the rpi pico-w).
I've wasted time reading docs, finding a function, coding with it... and finding out it doesn't work because it's not implemented!
I kindly but firmly ask you to remove this function on all micros where it is a No Operation.
It will save confusion and frustration for all other developers as well.
I've been trying to set up a PR, but it seems I don't have the privilege.