File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -615,6 +615,21 @@ void ArduinoIoTCloudTCP::onOTARequest()
615615 _ota_error = portenta_h7_onOTARequest (_ota_url.c_str ());
616616#endif
617617}
618+
619+ void ArduinoIoTCloudTCP::systemReset ()
620+ {
621+ #ifdef ARDUINO_ARCH_SAMD
622+ samd_systemReset ();
623+ #endif
624+
625+ #ifdef ARDUINO_NANO_RP2040_CONNECT
626+ rp2040_connect_systemReset ();
627+ #endif
628+
629+ #if defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_PORTENTA_H7_M4)
630+ portenta_h7_systemReset ();
631+ #endif
632+ }
618633#endif
619634
620635/* *****************************************************************************
Original file line number Diff line number Diff line change @@ -165,6 +165,7 @@ class ArduinoIoTCloudTCP: public ArduinoIoTCloudClass
165165
166166#if OTA_ENABLED
167167 void onOTARequest ();
168+ void systemReset ();
168169#endif
169170
170171 otaConfirmationStatus _get_ota_confirmation = {nullptr };
You can’t perform that action at this time.
0 commit comments