@@ -34,13 +34,13 @@ static char const SSID[] = SECRET_SSID; /* your network SSID (name) */
3434static 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 " );
0 commit comments