Hi everyone,
Just a quick post on how to configure wireless info on a raspberry pi. To start with, open the config file:
sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
You can then add any number of connections to the file with varying priorities:
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev update_config=1 country=AU network={ ssid="Mobile Network" psk="YOUR_PASSWORD" key_mgmt=WPA-PSK priority=2 } network={ ssid="Home Network" psk="YOUR_PASSWORD" key_mgmt=WPA-PSK priority=10 }
Then save the file. Your raspberry pi will now connect to the network with the highest priority first (home network), when that’s not available it will use the network with the lower priority (mobile network).
The official doco is actually pretty good for this use case if you need more info: https://www.raspberrypi.org/documentation/configuration/wireless/wireless-cli.md
Leave a Reply