I have a headless pi setup and I want it to connect to two different wifi's at two separate houses. This is how my wpa_supplicant.conf is setup:
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=US
network={
ssid="SSID"
psk="password"
priority=2
}
network={
ssid="opennetwork"
psk=NONE
priority=1
}
Right now i'm only able to be connected to my first network, as the other one is somewhere else. If my wpa_supplicant.conf file has only that network listed it connects fine. But, if I have it set up like this, it doesn't connect anywhere. Where did I go wrong?