We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bfe9e1c commit 00f61baCopy full SHA for 00f61ba
src/ArduinoIoTCloudTCP.cpp
@@ -514,10 +514,10 @@ 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
- /* Transmit the cleared error flag to the cloud. */
518
- sendPropertiesToCloud();
519
/* Clear the request flag. */
520
_ota_req = false;
+ /* Transmit the cleared error and request flags to the cloud. */
+ sendPropertiesToCloud();
521
/* Call member function to handle OTA request. */
522
onOTARequest();
523
}
0 commit comments