Don't disconnect mqtt when updating
This commit is contained in:
parent
c4fee4d19e
commit
1cfc215d81
|
@ -116,7 +116,6 @@ void configureOTA()
|
||||||
.onStart([]() {
|
.onStart([]() {
|
||||||
Serial.println("OTA Start");
|
Serial.println("OTA Start");
|
||||||
updateInProgress = true;
|
updateInProgress = true;
|
||||||
mqttClient.disconnect(true);
|
|
||||||
})
|
})
|
||||||
.onEnd([]() {
|
.onEnd([]() {
|
||||||
updateInProgress = false;
|
updateInProgress = false;
|
||||||
|
@ -178,8 +177,6 @@ void firmwareUpdate()
|
||||||
}
|
}
|
||||||
|
|
||||||
updateInProgress = true;
|
updateInProgress = true;
|
||||||
mqttClient.disconnect(true);
|
|
||||||
|
|
||||||
httpUpdate.setLedPin(LED_BUILTIN, LED_BUILTIN_ON);
|
httpUpdate.setLedPin(LED_BUILTIN, LED_BUILTIN_ON);
|
||||||
httpUpdate.setFollowRedirects(HTTPC_FORCE_FOLLOW_REDIRECTS);
|
httpUpdate.setFollowRedirects(HTTPC_FORCE_FOLLOW_REDIRECTS);
|
||||||
t_httpUpdate_return ret = httpUpdate.update(client, firmwareUrl);
|
t_httpUpdate_return ret = httpUpdate.update(client, firmwareUrl);
|
||||||
|
|
Loading…
Reference in New Issue