1
0
mirror of https://github.com/node-red/node-red-nodes.git synced 2023-10-10 13:36:58 +02:00

fixed typo in the temperature topic

This commit is contained in:
Ben Hardill 2013-11-07 22:51:52 +00:00
parent b35613dc7f
commit 0e370c9bbc

View File

@ -47,7 +47,7 @@ function sensorTagNode(n) {
sensorTag.enableIrTemperature(function(){}); sensorTag.enableIrTemperature(function(){});
sensorTag.on('irTemperatureChange', sensorTag.on('irTemperatureChange',
function(objectTemperature, ambientTemperature){ function(objectTemperature, ambientTemperature){
var msg = {'topic': node.topic + '/tempature'}; var msg = {'topic': node.topic + '/temperature'};
msg.payload = {'object': objectTemperature.toFixed(1), msg.payload = {'object': objectTemperature.toFixed(1),
'ambient':ambientTemperature.toFixed(1) 'ambient':ambientTemperature.toFixed(1)
}; };