[wifi] scan

This commit is contained in:
IrvingGao 2024-06-09 03:14:23 +08:00
parent e10b628bf9
commit aa0b1bc76a
1 changed files with 4 additions and 1 deletions

View File

@ -290,7 +290,10 @@ def submit():
# 关闭热点
close_hotspot()
time.sleep(2)
time.sleep(1)
scan_wifi()
time.sleep(1)
# 连接到用户选择的 Wi-Fi 网络
if connect_wifi(ssid, password):
close_app()