esphome / esphome/feature-requests

WIFI Country code for ESP32-C3

Open
#3,146 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
450
Forks
29
PR merge metrics
No merged PRs in 30d

Description

A lot of new ESP32-C3 have a limited WIFI channel scan feature. They can scan all channels but not 12 neither 13. So if your router is on channel 13, it will not reach it.
In arduino IDE, I had to implement the following code to make it reach channel 13

```
wifi_country_t my_country = {
.cc = "FR", // or "JP" for japan
.schan = 1,
.nchan = 13, // or 14 for Japan
.policy = WIFI_COUNTRY_POLICY_MANUAL
};
esp_wifi_set_country(&my_country);
```

In the [ESP32-C3 expressif doc](https://docs.espressif.com/projects/esp-idf/en/v5.0/esp32c3/api-guides/wifi.html#wi-fi-country-code), they mention the default WIFI scan
```
wifi_country_t config = {
.cc = "01",
.schan = 1,
.nchan = 11,
.policy = WIFI_COUNTRY_POLICY_AUTO,
};
```

It would be usefull to have this possibility in ESPHOME as it would enhance ESP32-C3 use in Europe and Japan !
Thank you

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reading ESPHome's Wi-Fi configuration path and the ESP-IDF Wi-Fi country-code documentation linked in the issue. Compare the requested wifi_country_t settings and esp_wifi_set_country call with the existing platform behavior. Done means ESP32-C3 devices can be configured to scan the requested regional channels, including channels 12 and 13 where applicable.

Written by the indexing model from the issue text.

Assessment

Tech stack
arduino
Domain
embedded-iot, networking
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.