Ensure MQTT node cleansession/keepalive defaults are used

This commit is contained in:
Nick O'Leary
2015-09-01 22:58:26 +01:00
parent fa5e37993e
commit c33d02c53f
2 changed files with 6 additions and 1 deletions

View File

@@ -103,7 +103,7 @@ module.exports = function(RED) {
this.options.username = this.username;
this.options.password = this.password;
this.options.keepalive = this.keepalive;
this.options.clean = this.clean;
this.options.clean = this.cleansession;
this.options.reconnectPeriod = RED.settings.mqttReconnectTime||5000;
if (this.compatmode == "true" || this.compatmode === true){
this.options.protocolId = 'MQIsdp';