Merge pull request #763 from paxexpress/master

Migrate OTA source bintray -> paxexpress
This commit is contained in:
Verkehrsrot authored and GitHub committed 2021-03-20 22:43:41 +01:00
commit bae079a93f
3 files changed
+5 -10

No files matched your search

+1 -3
View File
@@ -150,9 +150,8 @@ int do_ota_update() {
WiFiClientSecure client;
client.setCACert(bintray.getCertificate(currentHost));
client.setTimeout(RESPONSE_TIMEOUT_MS);
client.setInsecure();
if (!client.connect(currentHost.c_str(), port)) {
ESP_LOGI(TAG, "Cannot connect to %s", currentHost.c_str());
ota_display(3, " E", "connection lost");
@@ -162,7 +161,6 @@ int do_ota_update() {
while (redirect) {
if (currentHost != prevHost) {
client.stop();
client.setCACert(bintray.getCertificate(currentHost));
if (!client.connect(currentHost.c_str(), port)) {
ESP_LOGI(TAG, "Redirect detected, but cannot connect to %s",
currentHost.c_str());