Deal with clock singal
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user