We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 737aea7 commit d4d7940Copy full SHA for d4d7940
src/ArduinoIoTCloudTCP.cpp
@@ -514,12 +514,14 @@ ArduinoIoTCloudTCP::State ArduinoIoTCloudTCP::handle_Connected()
514
if (_automatic_ota || (_get_ota_confirmation != nullptr && _get_ota_confirmation())) {
515
/* Clear the error flag. */
516
_ota_error = static_cast<int>(OTAError::None);
517
+ /* Call member function to handle OTA request. */
518
+ onOTARequest();
519
/* Clear the request flag. */
520
_ota_req = false;
521
/* Transmit the cleared error and request flags to the cloud. */
522
sendPropertiesToCloud();
- /* Call member function to handle OTA request. */
- onOTARequest();
523
+ /* Reset the board to apply OTA update */
524
+ systemReset();
525
}
526
527
#endif /* OTA_ENABLED */
0 commit comments