Repeat node request 3x; fix rsPort and ws connection after close

This commit is contained in:
rasta5man 2025-06-12 11:34:03 +02:00
parent 0876e73c68
commit 0c993f50b1
6 changed files with 144 additions and 98 deletions

View file

@ -4,7 +4,7 @@ exports.group = 'Worksys';
exports.color = '#888600';
exports.version = '1.0.2';
exports.icon = 'sign-out';
exports.input = 7;
exports.input = 8;
exports.output = 1;
const { exec } = require('child_process');
@ -38,10 +38,12 @@ exports.install = function(instance) {
else instance.send(0, stdout);
})
})
instance.on("7", _ => {
instance.send(0, FLOW.deviceStatus);
})
};
const rpcSwitchOffLine =
{
"topic": "v1/gateway/rpc",