Close Menu
miapple.me – Tech.Blogmiapple.me – Tech.Blog

    Subscribe to Updates

    Get the latest creative news from FooBar about art, design and business.

    What's Hot

    Content Is Still King! 12 Years Of Blogging: miapple.me – Tech.Blog’s 12th Anniversary

    January 21, 2024

    Content Is King Again! 10 Years Of Blogging: miapple.me – Tech.Blog’s 10th Anniversary

    January 21, 2022

    Fixing: Time Machine couldn‘t complete backup

    April 30, 2021
    • Downloads
    • Email Subscription
    • Imprint
    • Privacy Policy
      • Push Notifications Subscription
      • Terms of Use
    • Search
    miapple.me – Tech.Blogmiapple.me – Tech.Blog
    • Apps
    • AirPlay
    • Apple
      • Apple TV
      • Apple Watch
      • iCloud
      • iTunes
      • macOS
    • iOS
    • HomeKit
    • Plex
    • Raspberry Pi
    • Windows
    • Downloads
    • Email Subscription
    • Imprint
    • Privacy policy
      • Push Notifications Subscription
      • Terms of Use
    • Search
    Subscribe
    miapple.me – Tech.Blogmiapple.me – Tech.Blog
    Home»HomeKit»How To Fix Raspberry Pi ‘WiFi Country Not Set’
    HomeKit

    How To Fix Raspberry Pi ‘WiFi Country Not Set’

    Gee Are PabstBy Gee Are PabstMay 16, 2018Updated:June 2, 20181 Comment3 Mins Read
    Raspberry Pi WiFi country not set_01_WiFI disabled because country not set
    Raspberry Pi WiFi country not set_01_WiFI disabled because country not set

    Raspberry Pi-Logo_2581x2581Fix ‘WiFi country not set’ error on Raspberry Pi Model 3 B+ by adding a country code to the wpa_supplicant.conf file.  Accessing your Raspberry Pi and setting the country code is essential for enabling WiFi on a Raspberry Pi Model 3 B+ and for using the WiFi module to connect your Homebridge, openHAB or Home Assistant application to your local network. 

    Here is the error message ‘WiFi country not set’:

    Raspberry Pi WiFi country not set_01_WiFI disabled because country not set
    Raspberry Pi WiFi country not set_01_WiFI disabled because country not set

    On the Raspberry Pi 3 Model B+, you need to set the country code, so that the 5G networking can choose the correct frequency bands. You can either use the raspi-config application and select the localisation option, or edit the wpa_supplicant.conf file and execute the following steps:

    How to access your Raspberry Pi 3 Model B+

    After you install the operating system and connect your Raspberry Pi to your network (and into power), you need to locate it so you can ssh into it and run some commands.

    The default “Raspbian” OS will automatically broadcast its presence on your network under the mDNS name “raspberrypi”. If you are using Mac or Linux, you can reach your Pi easily:

    ssh pi@raspberrypi.local

    Note: SSH is disabled by default in recent version of Raspbian. For details, see this page for instructions to re-enable it.

    The default username for Raspbian is pi and the password is raspberry.

    If you have a different OS installed on your Pi or you can’t find it via pi@raspberrypi.local then you can try connecting to your home router by pointing your web browser at somewhere like http://192.168.0.1, http://192.168.1.1, http://10.1.1.1 etc. (this depends on the router you’re using and your network setup). Once you are logged in, you can usually find a list of devices connected to your network under “DHCP”.

    Windows does not support ssh on the command line, but you can use a free SSH client like Putty to connect to your Pi.

    How to set the country code for enabling WiFi on Raspberry Pi 3 Model B+ and fix ‘WiFi country not set’

    Raspberry Pi WiFi country not set_02_adding country code to wpa_supplicant.conf file
    Raspberry Pi WiFi country not set_02_adding country code to wpa_supplicant.conf file

    Here is how to set the country code on Raspberry Pi 3 Model B+:

    1. Open the wpa-supplicant configuration file in nano:

    sudo nano /etc/wpa_supplicant/wpa_supplicant.conf

    2. Go to the bottom of the file and add the following:

    country=GB
    ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
    update_config=1
    network={
    ssid="testing"
    psk="testingPassword"
    }

    3. Type ‘control + X‘, then ‘Y‘ and ‘Enter‘ for saving and exiting. Done!

    Note: You need to replace ‘GB‘ with the ISO code of your country. See Wikipedia for a list of country codes.

    Checking the debugging: No error message anymore, WiFi is enabled:

    Raspberry Pi WiFi country not set_03_no error message after setting country code
    Raspberry Pi WiFi country not set_03_no error message after setting country code

    Due to security reasons, you have to manually set up WiFi on a Raspberry Pi 3 Model B+. WiFi is enabled by adding the country code to the wpa_supplicant.conf file.

    Stay tuned! 😉

    Home Assistant Home Automation HomeBridge openHAB Raspberry Pi 3 model B+
    Previous ArticleHarmony Hub: Fixing ‘Starting Channel Not Working’
    Next Article HomeKit: Starting Homebridge On Bootup Via Systemd
    Gee Are Pabst
    • Website
    • Facebook
    • X (Twitter)
    • Pinterest
    • LinkedIn

    Hi there,my name is Gee Are, blogger and analyst. Blogging is my Passion! I’m the founder and owner of the two blogs called pabst.socialmedia and miapple.me - Tech.Blog.My work experience as a blogger and analysist (Internet Intelligence, SEO and social media) is the basis of the services of pabst.socialmedia.Find more about me.

    Related Posts

    Android

    8 Years Of Blogging: miapple.me – Tech.Blog’s 8th Anniversary

    January 21, 2020
    HomeKit

    HomeKit: Starting Homebridge On Bootup Via Systemd

    June 29, 2018
    Android

    Harmony Hub: Fixing ‘Starting Channel Not Working’

    May 6, 2018
    View 1 Comment

    1 Comment

    1. Pingback: Fixing My Dead Nextcloudpi box in three simple steps – Wayne Out There

    Leave A Reply Cancel Reply

    Top Posts

    Fixing ‘Cannot Connect MacBook To iPhone Via Bluetooth’

    May 5, 20166,843 Views

    Fixing No Notification Sounds On iPhone When Locked

    January 8, 20214,491 Views

    How To Fix MacBook Micro-Vibrations While Charging Due To Insufficient Grounding

    June 21, 20203,435 Views

    Fixing Mac No Admin Account On macOS Mojave Or Later

    February 3, 20212,074 Views

    Installing Huawei E3372 On macOS 11 Big Sur, Mac OS 10.12 Sierra And macOS 10.13 High Sierra

    August 11, 20161,780 Views

    Apple iCloud Mail Blocks Outbound Emails: Silent Filtering And How To Fix It

    December 1, 2020787 Views
    Featured Reviews

    Fixing ‘Cannot Connect MacBook To iPhone Via Bluetooth’

    May 5, 20166,843 Views

    Fixing No Notification Sounds On iPhone When Locked

    January 8, 20214,491 Views

    How To Fix MacBook Micro-Vibrations While Charging Due To Insufficient Grounding

    June 21, 20203,435 Views
    Our Picks

    Content Is Still King! 12 Years Of Blogging: miapple.me – Tech.Blog’s 12th Anniversary

    January 21, 2024

    Content Is King Again! 10 Years Of Blogging: miapple.me – Tech.Blog’s 10th Anniversary

    January 21, 2022

    Fixing: Time Machine couldn‘t complete backup

    April 30, 2021

    Subscribe to Updates

    Get the latest creative news from FooBar about art, design and business.

    • Home
    • Search
    • About Us
    • Contact Us
    Copyright © 2012-2025 miapple.me™

    Type above and press Enter to search. Press Esc to cancel.