Log changed

This commit is contained in:
Gerrit Linnemann 2016-08-19 12:22:55 +02:00
parent 203d770e98
commit b6ac276024

View File

@ -63,8 +63,8 @@ function connect(item) {
t.on(Tinkerforge.BrickletTemperature.CALLBACK_TEMPERATURE, t.on(Tinkerforge.BrickletTemperature.CALLBACK_TEMPERATURE,
// Callback function for temperature callback (parameter has unit °C/100) // Callback function for temperature callback (parameter has unit °C/100)
function (temperature) { function (temperature) {
saveValue(temperature/100.0, item); saveValue((temperature/100.0), item);
Log.log('Temperature: ' + temperature/100.0 + ' °C'); //Log.log('Temperature: ' + temperature/100.0 + ' °C');
} }
); );
@ -86,6 +86,8 @@ function saveValue(value, item) {
path: '/persist/value/of/'+category+'/with/'+value+'/in/'+room+'/' path: '/persist/value/of/'+category+'/with/'+value+'/in/'+room+'/'
}; };
Log.log(options.host + ':' + options.port + options.path);
callback = function(response) { callback = function(response) {
var str = ''; var str = '';