优化wifi设置页面,添加悬浮键盘
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user