User Manual
allow-hotplug wlan1
iface wlan1 inet manual
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
By default, this file is set up to get its configuration
from /etc/wpa_supplicant/wpa_supplicant.conf, which is really the proper place for wifi
information. Here are the contents:
COPY CODEctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="myNetworkSSID"
psk="mySuperSecurePassword"
key_mgmt=WPA-PSK
}
A note on network configuration: Try the gui tool first, and only modify the files as a last resort.
If you find the tool doesn't work, save your configuration files as a backup, and don't be afraid to
try your hand at a manual configuration.
Applying the Changes
Sometimes the link should be cycled for a new configuration to take. Rather than shutting down
the pi and restarting, use 'ifdown' and 'ifup' to bring the link down and back up.
For wireless connections, use
sudo ifdown wlan0
and
sudo ifup wlan0
For wired connections, use
sudo ifdown eth0
and
sudo ifup eth0
Reading Inputs and Toggling the LEDs
This section contains instructions for getting the software necessary to compile programs that
use the GPIO, then redirects to our Raspberry gPIo tutorial.
Getting WiringPi for Using C++
The WiringPi library is required to operate the GPIO with C++. There are two methods to get it,
mentioned below. Either way, it will have to be built before use.
Get From the WiringPi Website
The first way to obtain it is to download from a direct link to the WiringPi
website: http://wiringpi.com/download-and-install/.
Get Using Git (Preferred)
Another way to obtain it is using apt-get to obtain git, then by using git to get the repository.