diff --git a/networkDevices/EthLan8720Device.cpp b/networkDevices/EthLan8720Device.cpp index 5311625..add2e49 100644 --- a/networkDevices/EthLan8720Device.cpp +++ b/networkDevices/EthLan8720Device.cpp @@ -25,7 +25,7 @@ EthLan8720Device::EthLan8720Device(const String& hostname, Preferences* _prefere { Log->println(F("MQTT over TLS.")); Log->println(_ca); - _mqttClientSecure = new espMqttClientSecure(); + _mqttClientSecure = new espMqttClientSecure(false); _mqttClientSecure->setCACert(_ca); if(crtLength > 1 && keyLength > 1) // length is 1 when empty { @@ -38,7 +38,7 @@ EthLan8720Device::EthLan8720Device(const String& hostname, Preferences* _prefere } else { Log->println(F("MQTT without TLS.")); - _mqttClient = new espMqttClient(); + _mqttClient = new espMqttClient(false); } if(_preferences->getBool(preference_mqtt_log_enabled)) diff --git a/networkDevices/WifiDevice.cpp b/networkDevices/WifiDevice.cpp index a3a04a5..610b8a2 100644 --- a/networkDevices/WifiDevice.cpp +++ b/networkDevices/WifiDevice.cpp @@ -25,7 +25,7 @@ WifiDevice::WifiDevice(const String& hostname, Preferences* _preferences) { Log->println(F("MQTT over TLS.")); Log->println(_ca); - _mqttClientSecure = new espMqttClientSecure(); + _mqttClientSecure = new espMqttClientSecure(false); _mqttClientSecure->setCACert(_ca); if(crtLength > 1 && keyLength > 1) // length is 1 when empty { @@ -38,7 +38,7 @@ WifiDevice::WifiDevice(const String& hostname, Preferences* _preferences) } else { Log->println(F("MQTT without TLS.")); - _mqttClient = new espMqttClient(); + _mqttClient = new espMqttClient(false); } if(_preferences->getBool(preference_mqtt_log_enabled))