@@ -34,13 +34,13 @@ static char const SSID[] = SECRET_SSID; /* your network SSID (name) */
34
34
static char const PASS[] = SECRET_PASS; /* your network password (use for WPA, or use as key for WEP) */
35
35
36
36
#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" ;
38
38
#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" ;
40
40
#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" ;
42
42
#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" ;
44
44
#else
45
45
#error "Board not supported"
46
46
#endif
@@ -94,7 +94,7 @@ void setup()
94
94
95
95
96
96
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 */ );
98
98
if (ota_download <= 0 )
99
99
{
100
100
Serial.print (" Arduino_Portenta_OTA_QSPI::download failed with error code " );
0 commit comments