ota.cpp: streaming timeout changed
This commit is contained in:
parent
f2513584e2
commit
26f4bd8f09
@ -155,6 +155,7 @@ bool do_ota_update() {
|
||||
while (redirect) {
|
||||
if (currentHost != prevHost) {
|
||||
client.stop();
|
||||
client.setTimeout(RESPONSE_TIMEOUT_MS);
|
||||
client.setCACert(bintray.getCertificate(currentHost));
|
||||
if (!client.connect(currentHost.c_str(), port)) {
|
||||
ESP_LOGI(TAG, "Redirect detected, but cannot connect to %s",
|
||||
|
Loading…
Reference in New Issue
Block a user