diff --git a/hardware/physical-web/physical-web.html b/hardware/physical-web/physical-web.html index fb89326f..34852cb1 100644 --- a/hardware/physical-web/physical-web.html +++ b/hardware/physical-web/physical-web.html @@ -79,7 +79,7 @@ @@ -134,7 +147,8 @@ namespace: {value:""}, instance: {value:""}, power: {value:"-21",validate:RED.validators.number()}, - period: {value:"1",validate:RED.validators.number()} + period: {value:"10",validate:RED.validators.number()}, + count: {value:"2",validate:RED.validators.number()} }, color: "#2F7ACD", inputs:1, @@ -147,7 +161,8 @@ return this.name?"node_label_italic":""; }, oneditprepare: function() { - $( "#node-input-period" ).spinner({min:1}); + $( "#node-input-period" ).spinner({min:0}); + $( "#node-input-count" ).spinner({min:0}); $( "#node-input-power" ).spinner({min:-30,max:100}); $("#node-input-mode").on("change",function() { if ($("#node-input-mode").val() === "uid") { diff --git a/hardware/physical-web/physical-web.js b/hardware/physical-web/physical-web.js index be556d45..40b4f0fd 100644 --- a/hardware/physical-web/physical-web.js +++ b/hardware/physical-web/physical-web.js @@ -25,7 +25,8 @@ module.exports = function(RED) { var node = this; node.mode = n.mode; node.power = n.power; - node.period = n.period * 10; + node.period = n.period; + node.count = n.count; node.url = n.url; node.namespace = n.namespace; node.instance = n.instance; @@ -33,7 +34,7 @@ module.exports = function(RED) { node.options = { txPowerLevel: node.power, tlmPeriod: node.period, - tlmCount: 2 + tlmCount: node.count }; if (node.mode === "url" && node.url) {