Skip to content

Commit 07a6a95

Browse files
committed
Storing OTA file on Arduino servers instead of a personal one.
1 parent d8ec71a commit 07a6a95

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

examples/OTA_Qspi_Flash/OTA_Qspi_Flash.ino

+4-3
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* A) ./lzss.py --encode SKETCH.bin SKETCH.lzss
1212
* B) ./bin2ota.py PORTENTA_H7_M7 SKETCH.lzss SKETCH.ota
1313
* 4) Upload the OTA file to a network reachable location, e.g. OTA_Usage_Portenta.ino.PORTENTA_H7_M7.ota
14-
* has been uploaded to: http://www.107-systems.org/ota/OTA_Usage_Portenta.ino.PORTENTA_H7_M7.ota
14+
* has been uploaded to: http://downloads.arduino.cc/ota/OTA_Usage_Portenta.ino.PORTENTA_H7_M7.ota
1515
* 5) Perform an OTA update via steps outlined below.
1616
*/
1717

@@ -33,7 +33,7 @@
3333
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

36-
static char const OTA_FILE_LOCATION[] = "http://www.107-systems.org/ota/OTA_Usage_Portenta.ino.PORTENTA_H7_M7.ota";
36+
static char const OTA_FILE_LOCATION[] = "http://downloads.arduino.cc/ota/OTA_Usage_Portenta.ino.PORTENTA_H7_M7.ota";
3737

3838
/******************************************************************************
3939
* SETUP/LOOP
@@ -84,7 +84,7 @@ void setup()
8484

8585

8686
Serial.println("Starting download to QSPI ...");
87-
int const ota_download = ota.download(OTA_FILE_LOCATION);
87+
int const ota_download = ota.download(OTA_FILE_LOCATION, false /* is_https */);
8888
if (ota_download <= 0)
8989
{
9090
Serial.print ("Arduino_Portenta_OTA_QSPI::download failed with error code ");
@@ -117,6 +117,7 @@ void setup()
117117

118118
Serial.println("Performing a reset after which the bootloader will update the firmware.");
119119
Serial.println("Hint: Portenta H7 LED will blink Red-Blue-Green.");
120+
delay(1000); /* Make sure the serial message gets out before the reset. */
120121
ota.reset();
121122
}
122123

0 commit comments

Comments
 (0)