查看設備列表
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
說明連接成功。