Adding MULTIPLE WiFi SSID/PSK

Help setting up WiFi
Post Reply
4S7EF
Posts: 16
Joined: Wed Aug 14, 2019 2:50 am
Location: Sri Lanka

Adding MULTIPLE WiFi SSID/PSK

Post by 4S7EF » Fri Jan 31, 2020 4:36 am

There are times that WiFi does not work. I have therefore created a wpa_supplicant file and added to the boot directory of the SD card.

Since I operate often from an alternate location, how may I add MULTIPLE SSID/PSK to the EXISTING wpa_supplicant file[/b]?

4S7EF

4S7EF
Posts: 16
Joined: Wed Aug 14, 2019 2:50 am
Location: Sri Lanka

Re: Adding MULTIPLE WiFi SSID/PSK

Post by 4S7EF » Fri Jan 31, 2020 9:29 am

Found the answer;

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
ap_scan=1
fast_reauth=1
country=AU

network={
ssid="FirstSSID"
psk="password"
key_mgmt=WPA-PSK
id_str="0"
priority=100
}

network={
ssid="SecondSSID"
psk="password"
key_mgmt=WPA-PSK
id_str="1"
priority=99
}

network={
ssid="ThirdSSID"
psk="password"
key_mgmt=WPA-PSK
id_str="2"
priority=98
}

on4avt
Posts: 3
Joined: Fri Nov 22, 2019 1:57 pm

Re: Adding MULTIPLE WiFi SSID/PSK

Post by on4avt » Tue Apr 28, 2020 1:30 pm

I dont understand where to put this in?
I like to have more then one ssid in the list. Are they automatic choosen from te list ,when they are availibel?

KE7FNS
Posts: 685
Joined: Wed Apr 17, 2019 11:11 pm

Re: Adding MULTIPLE WiFi SSID/PSK

Post by KE7FNS » Tue Apr 28, 2020 6:50 pm

on4avt wrote:
Tue Apr 28, 2020 1:30 pm
I dont understand where to put this in?
wpa_supplicant.conf
on4avt wrote:
Tue Apr 28, 2020 1:30 pm
Are they automatic choosen from te list ,when they are availibel?
Depends. If you set a different priority they are sorted by priority. If you set the same priority they are sorted by signal.
All views, comments, posts and opinions shared are entirely my own.

Post Reply