| @@ -3,6 +3,7 @@ module.exports = function (RED) { | |||
| RED.nodes.createNode(this, config); | |||
| this.config = config; | |||
| var node = this; | |||
| var decimal = /^\s*[+-]{0,1}\s*([\d]+(\.[\d]*)*)\s*$/ | |||
| setNodeStatus({ fill: "grey", shape: "ring", text: "|| Off" }); | |||
| node.tBlinker = null;// Timer Blinker | |||
| node.blinkfrequency = typeof config.blinkfrequency === "undefined" ? 500 : config.blinkfrequency; | |||
| @@ -3,6 +3,7 @@ module.exports = function(RED) { | |||
| RED.nodes.createNode(this,config); | |||
| this.config = config; | |||
| var node = this; | |||
| var decimal = /^\s*[+-]{0,1}\s*([\d]+(\.[\d]*)*)\s*$/ | |||
| setNodeStatus( {fill: "grey" ,shape: "dot" ,text: "Waiting"}); | |||
| this.on('input', function (msg) { | |||
| var sTopic = node.config.name; | |||
| @@ -3,6 +3,7 @@ module.exports = function (RED) { | |||
| RED.nodes.createNode(this, config); | |||
| this.config = config; | |||
| var node = this; | |||
| var decimal = /^\s*[+-]{0,1}\s*([\d]+(\.[\d]*)*)\s*$/ | |||
| setNodeStatus({ fill: "green", shape: "ring", text: "-> pass" }); | |||
| node.bInviaMessaggio = true; // Send the message or not | |||
| node.currentMsg = {}; // Stores current payload | |||