mirror of
https://github.com/node-red/node-red.git
synced 2025-12-26 23:26:46 +01:00
Ensure MQTT node cleansession/keepalive defaults are used
This commit is contained in:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user