thing-it-device-enocean-ip
Advanced tools
Comparing version 0.1.13 to 0.1.14
@@ -72,6 +72,8 @@ module.exports = { | ||
this.state = {temperature1: 20.0, | ||
temperature2: 22.5, | ||
temperature3: 25.0, | ||
batteryFailing: false}; | ||
this.state = { | ||
temperature1: 20.0, | ||
temperature2: 22.5, | ||
temperature3: 25.0, | ||
batteryFailing: false | ||
}; | ||
@@ -116,3 +118,3 @@ if (this.isSimulated()) { | ||
} | ||
else{ | ||
else { | ||
this.state.batteryFailing = false; | ||
@@ -130,2 +132,3 @@ this.publishStateChange(); | ||
} | ||
}; | ||
@@ -135,5 +138,5 @@ /** | ||
*/ | ||
ThreeChannelTemperatureSensor.prototype.getState = function () { | ||
return this.state; | ||
}; | ||
ThreeChannelTemperatureSensor.prototype.getState = function () { | ||
return this.state; | ||
}; | ||
@@ -143,5 +146,5 @@ /** | ||
*/ | ||
ThreeChannelTemperatureSensor.prototype.setState = function (state) { | ||
this.state = state; | ||
}; | ||
ThreeChannelTemperatureSensor.prototype.setState = function (state) { | ||
this.state = state; | ||
}; | ||
@@ -152,7 +155,6 @@ | ||
*/ | ||
ThreeChannelTemperatureSensor.prototype.stop = function () { | ||
if (this.isSimulated()) { | ||
if (this.interval) { | ||
clearInterval(this.interval); | ||
} | ||
ThreeChannelTemperatureSensor.prototype.stop = function () { | ||
if (this.isSimulated()) { | ||
if (this.interval) { | ||
clearInterval(this.interval); | ||
} | ||
@@ -159,0 +161,0 @@ } |
{ | ||
"name": "thing-it-device-enocean-ip", | ||
"version": "0.1.13", | ||
"version": "0.1.14", | ||
"description": "[thing-it-node] Device Plugin for EnOcean IP products.", | ||
@@ -5,0 +5,0 @@ "authors": "Marc Gille", |
1749
80528