优化wifi设置页面,添加悬浮键盘

This commit is contained in:
2026-05-10 01:39:16 +08:00
parent 65c342219d
commit 649677f564
5 changed files with 1380 additions and 18 deletions

View File

@@ -89,6 +89,12 @@ class WifiManager:
self._run_wpa_cli("save_config")
return True
def connect_network_id(self, network_id):
"""通过 network_id 连接已保存的网络"""
ret1 = self._run_wpa_cli("select_network", str(network_id))
self._run_wpa_cli("save_config")
return bool(ret1)
def remove_network(self, network_id):
"""删除某个已保存的网络"""
self._run_wpa_cli("remove_network", str(network_id))