Skip to content

Commit e9605f1

Browse files
committed
fix: undefined variable typo
1 parent 24c652d commit e9605f1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/mqtt.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ Cayenne.prototype.__proto__ = events.EventEmitter.prototype;
3434
Cayenne.prototype.connect = function(callback) {
3535
const self = this;
3636
thingTopic = this.rootTopic;
37-
38-
this.client = mqtt.connect("mqtt://" + broker, {
37+
38+
this.client = mqtt.connect("mqtt://" + this.broker, {
3939
username: this.options.username,
4040
password: this.options.password,
4141
clientId: this.options.clientId,

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "cayennejs",
33
"description": "Cayenne API Node.JS Library",
4-
"version": "0.0.1",
4+
"version": "0.0.2",
55
"homepage": "mydevices.com/cayenne",
66
"repository": "https://github.com/myDevicesIoT/cayennejs",
77
"main": "",

0 commit comments

Comments
 (0)