From 445931af1d31afd5573038a6959beb01541d301b Mon Sep 17 00:00:00 2001 From: pennam Date: Thu, 2 Mar 2023 16:07:15 +0100 Subject: [PATCH] Enable https --- examples/OTA_Qspi_Flash/OTA_Qspi_Flash.ino | 10 +++++----- .../OTA_Qspi_Flash_Ethernet.ino | 6 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/examples/OTA_Qspi_Flash/OTA_Qspi_Flash.ino b/examples/OTA_Qspi_Flash/OTA_Qspi_Flash.ino index 988bcea..68cb214 100644 --- a/examples/OTA_Qspi_Flash/OTA_Qspi_Flash.ino +++ b/examples/OTA_Qspi_Flash/OTA_Qspi_Flash.ino @@ -34,13 +34,13 @@ static char const SSID[] = SECRET_SSID; /* your network SSID (name) */ static char const PASS[] = SECRET_PASS; /* your network password (use for WPA, or use as key for WEP) */ #if defined(ARDUINO_NICLA_VISION) -static char const OTA_FILE_LOCATION[] = "http://downloads.arduino.cc/ota/OTA_Usage_Portenta.ino.NICLA_VISION.ota"; +static char const OTA_FILE_LOCATION[] = "https://downloads.arduino.cc/ota/OTA_Usage_Portenta.ino.NICLA_VISION.ota"; #elif defined(ARDUINO_PORTENTA_H7_M7) -static char const OTA_FILE_LOCATION[] = "http://downloads.arduino.cc/ota/OTA_Usage_Portenta.ino.PORTENTA_H7_M7.ota"; +static char const OTA_FILE_LOCATION[] = "https://downloads.arduino.cc/ota/OTA_Usage_Portenta.ino.PORTENTA_H7_M7.ota"; #elif defined(ARDUINO_OPTA) -static char const OTA_FILE_LOCATION[] = "http://downloads.arduino.cc/ota/OTA_Usage_Portenta.ino.OPTA.ota"; +static char const OTA_FILE_LOCATION[] = "https://downloads.arduino.cc/ota/OTA_Usage_Portenta.ino.OPTA.ota"; #elif defined(ARDUINO_GIGA) -static char const OTA_FILE_LOCATION[] = "http://downloads.arduino.cc/ota/OTA_Usage_Portenta.ino.GIGA.ota"; +static char const OTA_FILE_LOCATION[] = "https://downloads.arduino.cc/ota/OTA_Usage_Portenta.ino.GIGA.ota"; #else #error "Board not supported" #endif @@ -94,7 +94,7 @@ void setup() Serial.println("Starting download to QSPI ..."); - int const ota_download = ota.download(OTA_FILE_LOCATION, false /* is_https */); + int const ota_download = ota.download(OTA_FILE_LOCATION, true /* is_https */); if (ota_download <= 0) { Serial.print ("Arduino_Portenta_OTA_QSPI::download failed with error code "); diff --git a/examples/OTA_Qspi_Flash_Ethernet/OTA_Qspi_Flash_Ethernet.ino b/examples/OTA_Qspi_Flash_Ethernet/OTA_Qspi_Flash_Ethernet.ino index b17fb29..4e516fe 100644 --- a/examples/OTA_Qspi_Flash_Ethernet/OTA_Qspi_Flash_Ethernet.ino +++ b/examples/OTA_Qspi_Flash_Ethernet/OTA_Qspi_Flash_Ethernet.ino @@ -27,9 +27,9 @@ * CONSTANT ******************************************************************************/ #if defined(ARDUINO_OPTA) -static char const OTA_FILE_LOCATION[] = "http://downloads.arduino.cc/ota/OTA_Usage_Portenta.ino.OPTA.ota"; +static char const OTA_FILE_LOCATION[] = "https://downloads.arduino.cc/ota/OTA_Usage_Portenta.ino.OPTA.ota"; #elif defined(ARDUINO_PORTENTA_H7_M7) -static char const OTA_FILE_LOCATION[] = "http://downloads.arduino.cc/ota/OTA_Usage_Portenta.ino.PORTENTA_H7_M7.ota"; +static char const OTA_FILE_LOCATION[] = "https://downloads.arduino.cc/ota/OTA_Usage_Portenta.ino.PORTENTA_H7_M7.ota"; #else #error "Board not supported" #endif @@ -70,7 +70,7 @@ void setup() } Serial.println("Starting download to QSPI ..."); - int const ota_download = ota.download(OTA_FILE_LOCATION, false /* is_https */); + int const ota_download = ota.download(OTA_FILE_LOCATION, true /* is_https */); if (ota_download <= 0) { Serial.print ("Arduino_Portenta_OTA_QSPI::download failed with error code ");