← index #7179Issue #11619
Related · high · value 1.812
QUERY · ISSUE

Missing country settings for ESP WIFI

openby karfasopened 2021-04-28updated 2024-09-13
enhancementport-esp32

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

CANDIDATE · ISSUE

network.country availability

openby massimosalaopened 2023-05-25updated 2024-06-20
enhancement

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.

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied