Skip to content

Enable the WiFi country code to be set in configuration. - #807

Merged
NevynUK merged 3 commits into
mainfrom
AddSupportForWiFiCountryCodes
Oct 14, 2026
Merged

NevynUK merged 3 commits into
mainfrom
AddSupportForWiFiCountryCodes

Conversation

@NevynUK

@NevynUK NevynUK commented May 25, 2026

Copy link
Copy Markdown
Contributor

The ESP32 chip defaults to country code 01 which is the world safe contry code. This limits some operations such as WiFi power but also the ability to find a WiFi network if the network is marked as hidden.

This change adds the ability to set the country code in the meadow.config.yaml file.

Valid country codes are:

"01", "AT", "AU", "BE", "BG", "BR", "CA", "CH", "CN", "CY", "CZ", "DE", "DK", "EE", "ES", "FI", "FR", "GB", "GR", "HK", "HR", "HU", "IE", "IN", "IS", "IT", "JP", "KR", "LI", "LT", "LU", "LV", "MT", "MX", "NL", "NO", "NZ", "PL", "PT", "RO", "SE", "SI", "SK", "TW", "US"

@NevynUK

NevynUK commented Oct 14, 2026

Copy link
Copy Markdown
Contributor Author

So a valid entry in the meadow.config.yaml file for the country code looks something like this:

Network:
    Interfaces:
        - Name: WiFi
          UseDHCP: true
          IPAddress: 192.168.1.16
          NetMask: 255.255.255.0
          Gateway: 192.168.1.254
    #
    #   Which interface should be used?
    #
    DefaultInterface: WiFi
    #
    #    Country code for the WiFi network.
    #
    CountryCode: GB

@NevynUK
NevynUK merged commit f503cfa into main Oct 14, 2026
0 of 4 checks passed
@NevynUK
NevynUK deleted the AddSupportForWiFiCountryCodes branch October 14, 2026 09:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant