raspberry pi sample wpa_supplicant.conf code example

Example 1: wpa_supplicant.conf raspberry

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=<Insert 2 letter ISO 3166-1 country code here>

network={
    ssid="HomeNetworkSSID"
    psk="passwordHome"
    key_mgmt=WPA-PSK
}

Example 2: raspberry pi wpa_supplicant

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=US

network={
     ssid="Your network name/SSID"
     psk="Your WPA/WPA2 security key"
     key_mgmt=WPA-PSK
}