1.确定树莓派wifi通道和路由器wifi通道相符
2.使用wpa_passphrase thm 12345678 >> /etc/wpa_supplicant/wpa_supplicant.conf生成wifi链接地址
3.重启路由器
例子
country=CN
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="jtfxlm"
psk="jtfxlmjtfxlm"
priority=9
}
network={
ssid="今天努力复习了没"
#psk="jtnlfxlmjtnlfxlm"
psk=b5fd26c583c39fefc453255e1a5539064f9adb17a7511463fb775046302782b1
priority=99
}