This commit is contained in:
IrvingGao committed 2024-05-27 23:22:57 +08:00
1 parent f8b4b7fa8c
commit 159a83a412
2 files changed
+4 -4

No files matched your search

+3 -4
View File
@@ -1,4 +1,3 @@
sudo python3 wifi_manager.py
cd ..
cd TakwayPlatform
sudo python3 ws_client.py
python3 wifi_manager.py
cd ~/TakwayPlatform/
python3 ws_client.py
+1
View File
@@ -205,6 +205,7 @@ def load_saved_wifi():
def save_wifi(ssid, password):
wifi_list = load_saved_wifi()
if ssid not in [item['ssid'] for item in wifi_list]:
wifi_list.append({'ssid': ssid, 'password': password})
with open('wifi_list.json', 'w') as f:
json.dump(wifi_list, f)