|
38 | 38 | #include "tls/utility/CryptoUtil.h"
|
39 | 39 | #endif
|
40 | 40 |
|
41 |
| -#if defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_PORTENTA_H7_M4) |
| 41 | +#if defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_PORTENTA_H7_M4) || defined(ARDUINO_NICLA_VISION) |
42 | 42 | # include "tls/utility/SHA256.h"
|
43 | 43 | # include <stm32h7xx_hal_rtc_ex.h>
|
44 | 44 | # include <WiFi.h>
|
|
56 | 56 | * EXTERN
|
57 | 57 | ******************************************************************************/
|
58 | 58 |
|
59 |
| -#if defined(ARDUINO_PORTENTA_H7_M7) |
| 59 | +#if defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_NICLA_VISION) |
60 | 60 | extern RTC_HandleTypeDef RTCHandle;
|
61 | 61 | #endif
|
62 | 62 |
|
@@ -151,7 +151,7 @@ int ArduinoIoTCloudTCP::begin(bool const enable_watchdog, String brokerAddress,
|
151 | 151 | #endif /* AVR */
|
152 | 152 |
|
153 | 153 | #if OTA_ENABLED && !defined(__AVR__)
|
154 |
| -#if defined(ARDUINO_PORTENTA_H7_M7) |
| 154 | +#if defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_NICLA_VISION) |
155 | 155 | /* The length of the application can be retrieved the same way it was
|
156 | 156 | * communicated to the bootloader, that is by writing to the non-volatile
|
157 | 157 | * storage registers of the RTC.
|
@@ -288,7 +288,7 @@ int ArduinoIoTCloudTCP::begin(bool const enable_watchdog, String brokerAddress,
|
288 | 288 | }
|
289 | 289 | #endif /* OTA_STORAGE_SNU */
|
290 | 290 |
|
291 |
| -#if defined(ARDUINO_NANO_RP2040_CONNECT) |
| 291 | +#if defined(ARDUINO_NANO_RP2040_CONNECT) || defined(ARDUINO_NICLA_VISION) |
292 | 292 | _ota_cap = true;
|
293 | 293 | #endif
|
294 | 294 |
|
@@ -826,7 +826,7 @@ void ArduinoIoTCloudTCP::onOTARequest()
|
826 | 826 | _ota_error = rp2040_connect_onOTARequest(_ota_url.c_str());
|
827 | 827 | #endif
|
828 | 828 |
|
829 |
| -#if defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_PORTENTA_H7_M4) |
| 829 | +#if defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_PORTENTA_H7_M4) || defined(ARDUINO_NICLA_VISION) |
830 | 830 | _ota_error = portenta_h7_onOTARequest(_ota_url.c_str());
|
831 | 831 | #endif
|
832 | 832 | }
|
|
0 commit comments