[scan] wifi

This commit is contained in:
IrvingGao 2024-06-13 16:29:39 +08:00
parent f9b644b88f
commit ca91fdd9f5
1 changed files with 2 additions and 0 deletions

View File

@ -29,6 +29,8 @@ def scan_wifi():
# 提取MAC地址
mac_address = columns[0]
if columns[0] == '*': # 已连接的WiFi 第一位为*
mac_address = columns[1]
# 提取Wi-Fi名称
wifi_name = []