We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c7945c6 commit 9cf7523Copy full SHA for 9cf7523
src/ArduinoIoTCloudTCP.cpp
@@ -499,11 +499,6 @@ ArduinoIoTCloudTCP::State ArduinoIoTCloudTCP::handle_Connected()
499
_mqtt_data_request_retransmit = false;
500
}
501
502
- /* Check if any properties need encoding and send them to
503
- * the cloud if necessary.
504
- */
505
- sendPropertiesToCloud();
506
-
507
#if OTA_ENABLED
508
/* Request a OTA download if the hidden property
509
* OTA request has been set.
@@ -524,6 +519,11 @@ ArduinoIoTCloudTCP::State ArduinoIoTCloudTCP::handle_Connected()
524
519
525
520
#endif /* OTA_ENABLED */
526
521
522
+ /* Check if any properties need encoding and send them to
523
+ * the cloud if necessary.
+ */
+ sendPropertiesToCloud();
+
527
return State::Connected;
528
529
0 commit comments