Skip to content

Commit

Permalink
Some adjustments to MQTT
Browse files Browse the repository at this point in the history
  • Loading branch information
gskjold committed Dec 24, 2023
1 parent c583c2b commit 7a70bd7
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions lib/AmsMqttHandler/src/AmsMqttHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,6 @@ bool AmsMqttHandler::connect() {
if(debugger->isActive(RemoteDebug::INFO)) debugger->printf_P(PSTR("CA accepted\n"));
} else {
if(debugger->isActive(RemoteDebug::WARNING)) debugger->printf_P(PSTR("CA was rejected\n"));
delete mqttSecureClient;
mqttSecureClient = NULL;
return false;
}
#endif
Expand Down Expand Up @@ -102,10 +100,6 @@ bool AmsMqttHandler::connect() {
if(debugger->isActive(RemoteDebug::INFO)) debugger->printf_P(PSTR("CA verification disabled\n"));
mqttSecureClient->setInsecure();
}
if(mqttClient != NULL) {
mqttClient->stop();
delete mqttClient;
}
}
actualClient = mqttSecureClient;

Expand Down

0 comments on commit 7a70bd7

Please sign in to comment.