Skip to content

Commit 49f839a

Browse files
authored
Merge pull request #39 from pennam/https
Enable https
2 parents ba6a500 + 445931a commit 49f839a

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

Diff for: examples/OTA_Qspi_Flash/OTA_Qspi_Flash.ino

+5-5
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@ static char const SSID[] = SECRET_SSID; /* your network SSID (name) */
3434
static char const PASS[] = SECRET_PASS; /* your network password (use for WPA, or use as key for WEP) */
3535

3636
#if defined(ARDUINO_NICLA_VISION)
37-
static char const OTA_FILE_LOCATION[] = "http://downloads.arduino.cc/ota/OTA_Usage_Portenta.ino.NICLA_VISION.ota";
37+
static char const OTA_FILE_LOCATION[] = "https://downloads.arduino.cc/ota/OTA_Usage_Portenta.ino.NICLA_VISION.ota";
3838
#elif defined(ARDUINO_PORTENTA_H7_M7)
39-
static char const OTA_FILE_LOCATION[] = "http://downloads.arduino.cc/ota/OTA_Usage_Portenta.ino.PORTENTA_H7_M7.ota";
39+
static char const OTA_FILE_LOCATION[] = "https://downloads.arduino.cc/ota/OTA_Usage_Portenta.ino.PORTENTA_H7_M7.ota";
4040
#elif defined(ARDUINO_OPTA)
41-
static char const OTA_FILE_LOCATION[] = "http://downloads.arduino.cc/ota/OTA_Usage_Portenta.ino.OPTA.ota";
41+
static char const OTA_FILE_LOCATION[] = "https://downloads.arduino.cc/ota/OTA_Usage_Portenta.ino.OPTA.ota";
4242
#elif defined(ARDUINO_GIGA)
43-
static char const OTA_FILE_LOCATION[] = "http://downloads.arduino.cc/ota/OTA_Usage_Portenta.ino.GIGA.ota";
43+
static char const OTA_FILE_LOCATION[] = "https://downloads.arduino.cc/ota/OTA_Usage_Portenta.ino.GIGA.ota";
4444
#else
4545
#error "Board not supported"
4646
#endif
@@ -94,7 +94,7 @@ void setup()
9494

9595

9696
Serial.println("Starting download to QSPI ...");
97-
int const ota_download = ota.download(OTA_FILE_LOCATION, false /* is_https */);
97+
int const ota_download = ota.download(OTA_FILE_LOCATION, true /* is_https */);
9898
if (ota_download <= 0)
9999
{
100100
Serial.print ("Arduino_Portenta_OTA_QSPI::download failed with error code ");

Diff for: examples/OTA_Qspi_Flash_Ethernet/OTA_Qspi_Flash_Ethernet.ino

+3-3
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@
2727
* CONSTANT
2828
******************************************************************************/
2929
#if defined(ARDUINO_OPTA)
30-
static char const OTA_FILE_LOCATION[] = "http://downloads.arduino.cc/ota/OTA_Usage_Portenta.ino.OPTA.ota";
30+
static char const OTA_FILE_LOCATION[] = "https://downloads.arduino.cc/ota/OTA_Usage_Portenta.ino.OPTA.ota";
3131
#elif defined(ARDUINO_PORTENTA_H7_M7)
32-
static char const OTA_FILE_LOCATION[] = "http://downloads.arduino.cc/ota/OTA_Usage_Portenta.ino.PORTENTA_H7_M7.ota";
32+
static char const OTA_FILE_LOCATION[] = "https://downloads.arduino.cc/ota/OTA_Usage_Portenta.ino.PORTENTA_H7_M7.ota";
3333
#else
3434
#error "Board not supported"
3535
#endif
@@ -70,7 +70,7 @@ void setup()
7070
}
7171

7272
Serial.println("Starting download to QSPI ...");
73-
int const ota_download = ota.download(OTA_FILE_LOCATION, false /* is_https */);
73+
int const ota_download = ota.download(OTA_FILE_LOCATION, true /* is_https */);
7474
if (ota_download <= 0)
7575
{
7676
Serial.print ("Arduino_Portenta_OTA_QSPI::download failed with error code ");

0 commit comments

Comments
 (0)