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']; }