首页 > 代码库 > 树莓派 wifi设置

树莓派 wifi设置

1,设置interfaces

sudo nano /etc/network/interfaces 

修改 wanl0 部分:

auto wlan0

allow-hotplus wlan0

iface wlan0 inet dhcp

wpa_conf  /etc/wpa_supplicant/wpa_supplicant.conf

2修改 wpa_supplicants

sudo nano /etc/wpa_supplicants/wps_supplicants.conf

添加

ap_scan=1

network={

ssid="ssid名称"

psk="密码"

scan_ssid=1 #搜索隐藏无线

}

树莓派 wifi设置