diff --git a/hardware/sensorTag/79-sensorTag.js b/hardware/sensorTag/79-sensorTag.js index 8929d90c..2110ca01 100644 --- a/hardware/sensorTag/79-sensorTag.js +++ b/hardware/sensorTag/79-sensorTag.js @@ -77,7 +77,9 @@ module.exports = function(RED) { msg.payload = {'temperature': +temp.toFixed(1), 'humidity': +humidity.toFixed(1) }; - node.send(msg); + if ((temp !== -40) || (humidity !== 100)) { + node.send(msg); + } }); sensorTag.enableAccelerometer(function() {}); sensorTag.on('accelerometerChange', function(x,y,z) { diff --git a/hardware/sensorTag/package.json b/hardware/sensorTag/package.json index 8229c381..cd21ff54 100644 --- a/hardware/sensorTag/package.json +++ b/hardware/sensorTag/package.json @@ -1,7 +1,7 @@ { "name": "node-red-node-sensortag", "description": "A Node-RED node to read data from a TI SensorTag", - "version": "0.0.15", + "version": "0.0.16", "keywords": [ "node-red", "sensortag",