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
1 changed files with 2 additions and 2 deletions

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) {