mirror of
https://github.com/IoTManagerProject/IoTManagerWeb.git
synced 2026-03-26 23:12:34 +03:00
финальная
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user