Deal with clock singal

This commit is contained in:
2025-07-16 16:54:30 +02:00
parent 633a088483
commit 73c2b654e1
3 changed files with 5 additions and 0 deletions

View File

@@ -24,6 +24,8 @@ module.exports = function(RED) {
send([msg_F1, msg_F2]); send([msg_F1, msg_F2]);
break; break;
case "clock":
break;
default: default:
console.log("Unknown topic: " + msg.topic); console.log("Unknown topic: " + msg.topic);
} }

View File

@@ -41,6 +41,8 @@ module.exports = function(RED) {
send([msg_F1, msg_F2]); send([msg_F1, msg_F2]);
break; break;
case "clock":
break;
default: default:
console.log("Unknown topic: " + msg.topic); console.log("Unknown topic: " + msg.topic);
} }

View File

@@ -34,6 +34,7 @@ class nodeClass {
toggleUpdate = true; toggleUpdate = true;
this.reactor.updateState(msg.timestamp); this.reactor.updateState(msg.timestamp);
send([this.reactor.getEffluent, null, null]); send([this.reactor.getEffluent, null, null]);
send([msg, null, null])
break; break;
case "Fluent": case "Fluent":
this.reactor.setInfluent = msg; this.reactor.setInfluent = msg;