mirror of
https://github.com/node-red/node-red-nodes.git
synced 2025-03-01 10:37:43 +00:00
Update 100-heatmiser.js (#255)
Change to underlying nodejs module for addressing Neo and Wifi units
This commit is contained in:
parent
7a39c6f70b
commit
c86fdc839a
@ -13,7 +13,7 @@ module.exports = function(RED) {
|
|||||||
this.pollIntervalRef = undefined;
|
this.pollIntervalRef = undefined;
|
||||||
var hmoutnode = this;
|
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) {
|
this.hm.on('success', function(data) {
|
||||||
if (DEBUG) {
|
if (DEBUG) {
|
||||||
@ -84,7 +84,7 @@ module.exports = function(RED) {
|
|||||||
var hminnode = this;
|
var hminnode = this;
|
||||||
this.pollIntervalRef = undefined;
|
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) {
|
this.hm.on('success', function(data) {
|
||||||
if (DEBUG) {
|
if (DEBUG) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user