Add effluent output handling
This commit is contained in:
@@ -31,16 +31,21 @@ module.exports = function(RED) {
|
||||
case "clock":
|
||||
reactor.updateState(msg);
|
||||
break;
|
||||
case "Influx":
|
||||
case "Influent":
|
||||
reactor.setInflux = msg;
|
||||
break;
|
||||
case "Effluent":
|
||||
reactor.setInflux = msg;
|
||||
break;
|
||||
case "OTR":
|
||||
reactor.setOTR = msg;
|
||||
break;
|
||||
default:
|
||||
console.log("Unknown topic: " + msg.topic)
|
||||
console.log("Unknown topic: " + msg.topic);
|
||||
}
|
||||
|
||||
send(reactor.getEffluent);
|
||||
|
||||
if (done) {
|
||||
done();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user