Parcourir la source

407网页修正

liyi il y a 8 mois
Parent
commit
aec3adf153
2 fichiers modifiés avec 4 ajouts et 4 suppressions
  1. 2 2
      f407/applications/html_h/ws.h
  2. 2 2
      nor_web/api/ws.js

+ 2 - 2
f407/applications/html_h/ws.h

@@ -140,9 +140,9 @@ const char *p_ws =
     "    activePageIntervalId = setInterval(pageFunction, intervalTime);\n"
     "}\n"
     
-    "//ws = new WS('ws://' + window.location.host + '/ws', on_ws_msg);\n"
+    "ws = new WS('ws://' + window.location.host + '/ws', on_ws_msg);\n"
     
-    " ws = new WS('ws://192.168.1.166/ws', on_ws_msg);\n"
+    "// ws = new WS('ws://192.168.1.166/ws', on_ws_msg);\n"
     " // ws = new WS('ws://192.168.1.79/websocket/TMS-WebSocket', on_ws_msg);"
 ;
 

+ 2 - 2
nor_web/api/ws.js

@@ -128,7 +128,7 @@ function setActivePage(pageFunction, intervalTime) {
     activePageIntervalId = setInterval(pageFunction, intervalTime);
 }
 
-//ws = new WS('ws://' + window.location.host + '/ws', on_ws_msg);
+ws = new WS('ws://' + window.location.host + '/ws', on_ws_msg);
 
- ws = new WS('ws://192.168.1.166/ws', on_ws_msg);
+// ws = new WS('ws://192.168.1.166/ws', on_ws_msg);
  // ws = new WS('ws://192.168.1.79/websocket/TMS-WebSocket', on_ws_msg);