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

Update 100-heatmiser.js (#255)

Change to underlying nodejs module for addressing Neo and Wifi units
This commit is contained in:
GadgetUK 2016-11-26 21:17:20 +00:00 committed by Dave Conway-Jones
parent 7a39c6f70b
commit c86fdc839a

View File

@ -13,7 +13,7 @@ module.exports = function(RED) {
this.pollIntervalRef = undefined;
var hmoutnode = this;
this.hm = new Heatmiser(this.ip, this.pin);
this.hm = new Heatmiser.Wifi(this.ip, this.pin);
this.hm.on('success', function(data) {
if (DEBUG) {
@ -84,7 +84,7 @@ module.exports = function(RED) {
var hminnode = this;
this.pollIntervalRef = undefined;
this.hm = new Heatmiser(this.ip, this.pin);
this.hm = new Heatmiser.Wifi(this.ip, this.pin);
this.hm.on('success', function(data) {
if (DEBUG) {