debug scan

This commit is contained in:
IrvingGao 2024-05-25 22:10:04 +08:00
parent bac826b237
commit 5f47968283
2 changed files with 6 additions and 2 deletions

View File

@ -144,6 +144,7 @@ sudo systemctl status wifi_hotspot.service
#### (5) 配置热点信息:
- 手动连接`http://192.168.12.1/`
- 连接成功后,输入用户名密码,即可进入交互界面。

View File

@ -233,14 +233,16 @@ def submit():
if __name__ == '__main__':
debug_mode = False # 设置为 True 以跳过 Wi-Fi 连接状态检测
debug_mode = True # 设置为 True 以跳过 Wi-Fi 连接状态检测
if debug_mode:
disconnect_wifi()
scan_wifi()
'''
if led_enabled:
orangepi.set_led_on('blue')
if check_wifi_connection():
print(f"{datetime.datetime.now()}: 系统已自动连接到 Wi-Fi 网络,退出程序")
close_app()
@ -255,4 +257,5 @@ if __name__ == '__main__':
restart_hotspot()
# 启动 Flask 服务器
app.run(host='0.0.0.0', port=80)
'''