To connect a Raspberry Pi to a Wi-Fi network using the WID340, follow the steps below.
- Plug in the WID340: Plug the WID340 into an available port on the Raspberry Pi. If not enough ports are available, a USB hub can be used.
-
Edit the Wi-Fi settings: Open a terminal and run the command:
sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
You can substitute “leafpad” for “nano” if you prefer a graphical text editor on most Raspberry Pi installations.
-
Add your Network: In the wpa_supplicant.conf file, add the
following text:
network={
ssid="<network name>"
psk="<password>"
}
Replace <network name> with the name of your network, and <password> with the password for your network.
-
(optional) Restart the connection: The new information should
be detected automatically, but if not, you can restart the WLAN0 interface
to reload the wpa_supplicant.conf file using the command below:
sudo ifdown wlan0
sudo ifup wlan0