查看设备列表
1iwctl
2[iwd]# device list
3 Devices
4--------------------------------------------------------------------------------
5 Name Address Powered Adapter Mode
6--------------------------------------------------------------------------------
7 wlan0 6e:35:5e:19:51:c3 on phy0 station
wlan0
是本机的网络设备名称,后续将会用到,请根据情况对后续命令进行修改。
扫描 Wi-Fi 热点
1[iwd]# station wlan0 scan
2[iwd]# station wlan0 get-networks
3 Available networks
4--------------------------------------------------------------------------------
5 Network name Security Signal
6--------------------------------------------------------------------------------
7 > RAZON WIFI psk ****
8 ...
9 ...
连接 Wi-Fi 热点
以 RAZON WIFI
为例:
1[iwd]# station wlan0 connect "RAZON WIFI"
如果 station list
显示 connected
说明连接成功。