So what I have found Pi-Star does not seem to find the WIFI SSID if it is disabled or if SSID is hide
I'm start working with a raspberry pi and I'm dealing with a WiFi network that is not available everytime. This means that there might be a period of 30 seconds, let's say, during which the network is available and in the following seconds it is not.
Which steps should I take to ensure that my raspberry pi automatically connects when the WiFi network is available?
I've seen some tutorials about the wpa_supplicant and I already have the file /etc/init.d/interfaces with:
sudo nano /etc/init.d/interfaces
auto wlan1
allow-hotplug wlan1
iface wlan1 inet dhcp
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp
sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
network={
ssid="Mcdonalds"
psk="enter-password-here"
id_str="1"
priority=100
}
(And I also have the /etc/dhcp/dhclient.conf and the /etc/wpa_supplicant/wpa_supplicant.conf files)
I know that this is enough to setting up a WiFi connection (when the network is reachable anytime).
But in my case, is this enough?
enable read-write with "rpi-rw"
rpi-rwError writing interfaces: Read-only file system
network={Correction // update 👍 ✅
ssid="Mcdonalds"
scan_ssid=1
psk="enter-password-here"
id_str="1"
priority=100
}
sudo nano /etc/init.d/interfaces
sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
Source:
https://raspi.tv/2017/how-to-auto-connect-your-raspberry-pi-to-a-hidden-ssid-wifi-network
Add 'scan_ssid=1" between your ssid and psk lines.
ReplyDeleteFor more: https://raspi.tv/2017/how-to-auto-connect-your-raspberry-pi-to-a-hidden-ssid-wifi-network