Additional WiFi Networks and wpa_supplicant.conf

General support for the Pi-Star System
Post Reply
MW6WHL
Posts: 20
Joined: Sun Mar 29, 2020 6:39 pm

Additional WiFi Networks and wpa_supplicant.conf

Post by MW6WHL »

Hi All

I read in another informative thread, that if one wishes to add additional WiFi network to the hotspot device, that this should be simply added to the spa_supplicant.comf file. I have my ZumSpot working with my home network, and I wish to add the hotspot on my iPhone such that I can use this when away from home.

I used the wifi builder tool to generate the initial spa_supplicant file - which works fine, so do I simply use the tool again to generate a new file and add the lines associate to the new WiFi to the initial spa_supplicant file or are there more steps/additional lines of code to add?

Code: Select all

network={
	#ssid="Add New Name Here"
	ssid=Add SSID 
	#psk="Add PW here"
	psk=Add PSK
	id_str="0"
	priority=100
}
Also, what should the 2nd SSID priority be set to such that it is a lower priority than the 1st SSID?

Many thanks all

John
MW6WHL
Posts: 20
Joined: Sun Mar 29, 2020 6:39 pm

Re: Additional WiFi Networks and wpa_supplicant.conf

Post by MW6WHL »

Many thanks for the reply - the first one was a typo on my part, sorry, appreciate it is w not s

Ok, but in my wpa file there is a hex entry after the SSID and an even longer hex number after the psk line. How would I generate those?
MW6WHL
Posts: 20
Joined: Sun Mar 29, 2020 6:39 pm

Re: Additional WiFi Networks and wpa_supplicant.conf

Post by MW6WHL »

Awesome, thanks.

Yep, fully aware scripts are particularly picky on accurate syntax and correct use of file names. You'll maybe notice, to save you the trouble of informing me, that I also erroneously used an s instead of a w in the first line of the second paragraph, missed a d off the end of associate, and again used an s instead of a w in the same sentence. The thread title does suggest though, that perhaps on times I am able to type slowly enough with these fat fingers my parents blessed me with, to ensure grammatical and syntactical accuracy. :lol:

Maybe I misunderstood your initial answer to the first question in my second paragraph where you answered 'Nope'. I guess the answer to that question is indeed simply yes. :D

Just jesting with you... we all need a smile in these times, so thanks for taking the time and trouble to advise, it is appreciated... :)
Post Reply