Don't disconnect mqtt when updating

This commit is contained in:
DTTerastar 2021-04-04 22:36:49 -04:00
parent c4fee4d19e
commit 1cfc215d81
1 changed files with 0 additions and 3 deletions

View File

@ -116,7 +116,6 @@ void configureOTA()
.onStart([]() {
Serial.println("OTA Start");
updateInProgress = true;
mqttClient.disconnect(true);
})
.onEnd([]() {
updateInProgress = false;
@ -178,8 +177,6 @@ void firmwareUpdate()
}
updateInProgress = true;
mqttClient.disconnect(true);
httpUpdate.setLedPin(LED_BUILTIN, LED_BUILTIN_ON);
httpUpdate.setFollowRedirects(HTTPC_FORCE_FOLLOW_REDIRECTS);
t_httpUpdate_return ret = httpUpdate.update(client, firmwareUrl);