From fddb81b16b39f64848ddf5302c99194ec2cf5ede Mon Sep 17 00:00:00 2001 From: Thierry Bugier Date: Tue, 21 Nov 2017 23:23:45 +0100 Subject: [PATCH] fix(mqtt): use good config vars to connect to broker --- inc/mqttclient.class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/inc/mqttclient.class.php b/inc/mqttclient.class.php index a6094cd7..53258144 100644 --- a/inc/mqttclient.class.php +++ b/inc/mqttclient.class.php @@ -233,19 +233,19 @@ protected function getMQTTConnection() { 'mqtt_broker_internal_address', 'mqtt_broker_port', 'mqtt_broker_tls_port', - 'mqtt_broker_tls', + 'mqtt_tls_for_backend', 'mqtt_broker_tls_ciphers', 'mqtt_user', 'mqtt_passwd' ]); if (empty($config['mqtt_broker_internal_address']) || empty($config['mqtt_broker_port']) || empty($config['mqtt_broker_tls_port']) - || (!isset($config['mqtt_broker_tls']))) { + || (!isset($config['mqtt_tls_for_backend']))) { return false; } else { $mqttBrokerAddress = $config['mqtt_broker_internal_address']; $mqttBrokerPort = $config['mqtt_broker_port']; - $isTls = $config['mqtt_broker_tls'] != '0'; + $isTls = $config['mqtt_tls_for_backend'] != '0'; if ($isTls) { $mqttBrokerPort = $config['mqtt_broker_tls_port']; }