From bb70e796a1829efc03249eed1209e51519380156 Mon Sep 17 00:00:00 2001 From: Dave Conway-Jones Date: Fri, 27 Sep 2019 14:22:37 +0100 Subject: [PATCH] Change MQtt node default 3.1 compatibility mode to false --- .../node_modules/@node-red/nodes/core/network/10-mqtt.html | 6 +++--- .../node_modules/@node-red/nodes/core/network/10-mqtt.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/node_modules/@node-red/nodes/core/network/10-mqtt.html b/packages/node_modules/@node-red/nodes/core/network/10-mqtt.html index 86c3c0b9d..cdafab9ce 100644 --- a/packages/node_modules/@node-red/nodes/core/network/10-mqtt.html +++ b/packages/node_modules/@node-red/nodes/core/network/10-mqtt.html @@ -278,7 +278,7 @@ }}, usetls: {value: false}, verifyservercert: { value: false}, - compatmode: { value: true}, + compatmode: { value: false}, keepalive: {value:60,validate:RED.validators.number()}, cleansession: {value: true}, birthTopic: {value:""}, @@ -371,8 +371,8 @@ $("#node-config-input-usetls").prop("checked",false); } if (typeof this.compatmode === 'undefined') { - this.compatmode = true; - $("#node-config-input-compatmode").prop('checked', true); + this.compatmode = false; + $("#node-config-input-compatmode").prop('checked', false); } if (typeof this.keepalive === 'undefined') { this.keepalive = 15; diff --git a/packages/node_modules/@node-red/nodes/core/network/10-mqtt.js b/packages/node_modules/@node-red/nodes/core/network/10-mqtt.js index 379cf8a96..4945c5c8b 100644 --- a/packages/node_modules/@node-red/nodes/core/network/10-mqtt.js +++ b/packages/node_modules/@node-red/nodes/core/network/10-mqtt.js @@ -98,7 +98,7 @@ module.exports = function(RED) { this.usews = false; } if (typeof this.compatmode === 'undefined') { - this.compatmode = true; + this.compatmode = false; } if (typeof this.verifyservercert === 'undefined') { this.verifyservercert = false;