liyi преди 8 месеца
родител
ревизия
aec3adf153
променени са 2 файла, в които са добавени 4 реда и са изтрити 4 реда
  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);