loadRelaysData function removed from rsPort, DataToTbHandler-send data if broker not connected

This commit is contained in:
rasta5man 2024-09-23 17:57:23 +02:00
parent ca39e1266c
commit 1c131d0b63
4 changed files with 19 additions and 47 deletions

View file

@ -235,7 +235,7 @@ exports.install = function(instance) {
let responseStatus = await promisifyBuilder(dbStatus.find());
statusData = responseStatus[0]; // {thermometer: 'OK', em: 'OK', twilight_sensor: 'OK'}
deviceStatus["temperature"] = statusData.thermometer;
FLOW.OMS_rvo_tbname = relaysData[0].tbname;
if(controller_type === "lm")
@ -1367,7 +1367,6 @@ exports.install = function(instance) {
//ak bola predchadzajuci stav off a novy stav je on, budu sa nastavovat nespracovane node profiles
//a budu sa odosielat commandy, tie vsak mozu zlyhat, a preto potrebujeme ich spusti trochu neskor
setTimeout(function(){
instance.send(SEND_TO.cmd_manager, {sender: "dido_controller", cmd: "reload_relays", line: line, time: time, value: value, dataChanged: dataChanged});
}, time);
@ -1439,7 +1438,6 @@ exports.install = function(instance) {
}
if(value == "Off") values["status"] = "NOK";
deviceStatus["state_of_breaker"][line] = value;
reportLineStatus(line);