Skip to content

Commit

Permalink
Move IP address to DNS entry
Browse files Browse the repository at this point in the history
  • Loading branch information
hardillb committed Nov 10, 2016
1 parent 37abfc6 commit 1478768
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions alexa.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
**/

module.exports = function(RED) {

"use strict";
var request = require('request');
var mqtt = require('mqtt');
Expand All @@ -36,7 +37,7 @@ module.exports = function(RED) {

getDevices(node.username, node.password, node.id);

node.client = mqtt.connect('mqtt://134.168.37.62', options);
node.client = mqtt.connect('mqtt://alexa-node-red.hardill.me.uk', options);

node.client.on('connect', function() {
node.emit('status',{text:'connected', shape:'dot', fill:'green'});
Expand Down Expand Up @@ -139,7 +140,8 @@ module.exports = function(RED) {
//console.log(devs);
devices[id] = devs;
} else {
console.log("err: ",err);
//console.("err: " + err);
RED.log.log("Problem looking up " + username + "'s devices");
}
});
}
Expand Down

0 comments on commit 1478768

Please sign in to comment.