финальная

This commit is contained in:
Dmitry Borisenko
2021-12-10 17:37:37 +01:00
parent 817921eebd
commit 8aab3d8209

View File

@@ -162,6 +162,7 @@
ws++; ws++;
}); });
deviceList = deviceList; deviceList = deviceList;
socketConnected = selectedDeviceData.status;
} }
function markDeviceStatus(ws, status) { function markDeviceStatus(ws, status) {
@@ -178,6 +179,7 @@
} }
}); });
deviceList = deviceList; deviceList = deviceList;
socketConnected = selectedDeviceData.status;
} }
function getDeviceStatus(ws) { function getDeviceStatus(ws) {
@@ -247,7 +249,7 @@
} }
function wsTestMsgTask() { function wsTestMsgTask() {
setTimeout(wsTestMsgTask, 10000); setTimeout(wsTestMsgTask, 5000);
if (!flag) { if (!flag) {
deviceList.forEach((device) => { deviceList.forEach((device) => {
if (!getDeviceStatus(device.ws)) { if (!getDeviceStatus(device.ws)) {
@@ -331,6 +333,7 @@
console.log("[i]", "mounted"); console.log("[i]", "mounted");
connectToAllDevices(); connectToAllDevices();
wsTestMsgTask(); wsTestMsgTask();
socketConnected = selectedDeviceData.status;
findNewPage(); findNewPage();
}); });
</script> </script>