Fix: #918 - MQTT/SSL does not reconnect after disconnect (#933)

This commit is contained in:
Gunnar Skjold
2025-03-24 08:59:18 +01:00
committed by GitHub
parent 8a35346fcf
commit 37aa6ae816

View File

@@ -33,15 +33,18 @@ bool AmsMqttHandler::connect() {
if(epoch < FirmwareVersion::BuildEpoch) {
return false;
}
bool applySslConfiguration = mqttConfigChanged;
if(mqttSecureClient == NULL) {
mqttSecureClient = new WiFiClientSecure();
#if defined(ESP8266)
mqttSecureClient->setBufferSizes(512, 512);
return false;
#endif
applySslConfiguration = true;
}
if(mqttConfigChanged) {
if(applySslConfiguration) {
if(caVerification && LittleFS.begin()) {
File file;