Introduction
Because I wanted to set my Raspberry to the different location that is router, I have added a USB Wifi dongle (TP-LINK TL-WN725N v2) into it. Last version of Raspbian Jessie has drivers for it so it is no problem. Next, there is described to make it working on Raspberry wiki.
The problem is that it does not work with hidden and secured Wifi :/.
Let’s Make It Working
- Edit /etc/wpa_supplicant/wpa_supplicant.conf
sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
Add following code at the end:
network={ ssid="***HOTSPOT NAME***" proto=RSN key_mgmt=WPA-PSK pairwise=CCMP TKIP group=CCMP TKIP psk="***HOTSPOT PASSWORD***" scan_ssid=1 }
- Edit /etc/network/interfaces
sudo nano /etc/network/interfaces
Change line auto lo into auto wlan0
- Restart wifi
sudo ifdown wlan0 sudo ifup wlan0
- Now is should connect to hotspot. You can test it via command
ifconfig wlan0
It should print something like this:
pi@raspberrypi:~ $ ifconfig wlan0 wlan0 Link encap:Ethernet HWaddr 60:e3:27:12:05:4d inet addr:10.0.0.45 Bcast:10.0.0.255 Mask:255.255.255.0 inet6 addr: 2a00:1028:838e:ee:3b84:bf0d:3bb:875e/64 Scope:Global inet6 addr: fe80::8afd:f970:f42e:29ff/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:473 errors:0 dropped:47 overruns:0 frame:0 TX packets:321 errors:0 dropped:1 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:65018 (63.4 KiB) TX bytes:47021 (45.9 KiB)
attribute inet addr should show IP address that has Raspberry received.
- Now try to restart it and check again that is has connected