一、使用nmcli命令
1.首先搜索附近wifi:
nmcli dev wifi
esp32是我要连接的wifi
2.连接wifi
nmcli dev wifi connect xxx password *** //xxx为wifi名,***为密码,
nmcli dev wifi connect esp32 password 15016474776
连接成功
手机查看:
nmcli dev wifi
esp32是我要连接的wifi
nmcli dev wifi connect xxx password *** //xxx为wifi名,***为密码,
nmcli dev wifi connect esp32 password 15016474776
连接成功
手机查看: