added psensor 1.2.1 news
[www.git] / src / tricks / raspberry_pi3_configure_wifi.adoc
1 = Raspberry PI - Configure the Wifi
2 :docinfo2:
3 :icons: font
4
5 For WPA Wifi, edit the file `/etc/wpa_supplicant/wpa_supplicant.conf`
6 as root.
7
8 Example:
9
10 ```
11 ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
12 update_config=1
13 country=FR
14
15 network={
16         ssid="MY_SSID"
17         psk="MY_PASSWORD"
18         key_mgmt=WPA-PSK
19 }
20 ```
21
22 Replace `MY_SSID` by the name of the Wifi network and `MY_PASSWORD`
23 by the password of the Wifi network.
24
25 Multiple networks can be declared, the one with higher priority will
26 be used if possible:
27
28 ```
29 ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
30 update_config=1
31 country=FR
32
33 network={
34         ssid="MY_SSID"
35         psk="MY_PASSWORD"
36         key_mgmt=WPA-PSK
37         priority=2
38 }
39
40 network={
41         ssid="MY_SSID2"
42         psk="MY_PASSWORD2"
43         key_mgmt=WPA-PSK
44         priority=1
45 }
46
47 ```