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,
// Callback function for temperature callback (parameter has unit °C/100)
function (temperature) {
saveValue(temperature/100.0, item);
Log.log('Temperature: ' + temperature/100.0 + ' °C');
saveValue((temperature/100.0), item);
//Log.log('Temperature: ' + temperature/100.0 + ' °C');
}
);
@ -85,6 +85,8 @@ function saveValue(value, item) {
port: item.on.new.value.port,
path: '/persist/value/of/'+category+'/with/'+value+'/in/'+room+'/'
};
Log.log(options.host + ':' + options.port + options.path);
callback = function(response) {
var str = '';