Merge pull request #763 from paxexpress/master
Migrate OTA source bintray -> paxexpress
This commit is contained in:
3 files changed
+5
-10
No files matched your search
+1
-3
@@ -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());
|
||||
|
||||
Reference in new issue
Block a user