Skip to content

Commit

Permalink
Convert string port to int port
Browse files Browse the repository at this point in the history
  • Loading branch information
StWiemann committed Jan 22, 2020
1 parent b005c83 commit fdcfd9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/bindings/mqttClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class MqttClient {
var options = {};
options.username = this.username;
options.password = this.password;
options.port = this.port;
options.port = parseInt(this.port, 10);
var connected = false;

winston.info('Connecting to MQTT server %s with options:%s', host, JSON.stringify(options));
Expand Down

0 comments on commit fdcfd9a

Please sign in to comment.