Jared 2 years ago
parent
commit
1c2b5e8c4b
1 changed files with 5 additions and 1 deletions
  1. 5 1
      monitor/test_wd.py

+ 5 - 1
monitor/test_wd.py

@@ -86,7 +86,11 @@ def process_query(qs):
     lenelmts=len(elmts)
     lenelmts=len(elmts)
     print('搜尋結果數量',lenelmts)
     print('搜尋結果數量',lenelmts)
     if lenelmts <=0:
     if lenelmts <=0:
-        os.system('docker container restart p4444')
+        os.system('python3 tplink_reboot.py')
+        time.sleep(200)
+        os.system('netsh wlan connect TP-Link_78E0')
+
+#        os.system('docker container restart p4444')
         return
         return