Skip to content

Commit 65951d1

Browse files
committed
Adapt to new API of WiFi.download.
1 parent 07a6a95 commit 65951d1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Arduino_Portenta_OTA.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ class Arduino_Portenta_OTA
8888
/* This functionality is intended for usage with the Arduino IoT Cloud for
8989
* performing OTA firmware updates using the Arduino IoT Cloud servers.
9090
*/
91-
int download(const char * url);
91+
int download(const char * url, bool const is_https);
9292
int decompress();
9393

9494

src/decompress/utility.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,9 @@ uint32_t crc_update(uint32_t crc, const void * data, size_t data_len)
9090
MAIN
9191
**************************************************************************************/
9292

93-
int Arduino_Portenta_OTA::download(const char * url)
93+
int Arduino_Portenta_OTA::download(const char * url, bool const is_https)
9494
{
95-
return WiFi.download((char *)url, UPDATE_FILE_NAME_LZSS);
95+
return WiFi.download((char *)url, UPDATE_FILE_NAME_LZSS, is_https);
9696
}
9797

9898
int Arduino_Portenta_OTA::decompress()

0 commit comments

Comments
 (0)