Skip to content

Commit

Permalink
fix host
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmens committed Aug 11, 2014
1 parent c988349 commit 4e5a7b3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@

function MQTTconnect() {
mqtt = new Messaging.Client(
host,
port,
config.host,
config.port,
"web_" + parseInt(Math.random() * 100,
10));
var options = {
Expand All @@ -36,12 +36,12 @@
options.userName = username;
options.password = password;
}
console.log("Host="+ host + ", port=" + port + " TLS = " + useTLS + " username=" + username + " password=" + password);
console.log("Host="+ config.host + ", port=" + config.port + " TLS = " + useTLS + " username=" + username + " password=" + password);
mqtt.connect(options);
}

function onConnect() {
$('#status').val('Connected to ' + host + ':' + port);
$('#status').val('Connected to ' + config.host + ':' + config.port);
// Connection succeeded; subscribe to our topic
mqtt.subscribe(topic, {qos: 0});
$('#topic').val(topic);
Expand Down

0 comments on commit 4e5a7b3

Please sign in to comment.