We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3a0b4ce commit ba2d584Copy full SHA for ba2d584
src/ArduinoIoTCloudDevice.cpp
@@ -104,12 +104,12 @@ ArduinoCloudDevice::State ArduinoCloudDevice::handleInit() {
104
105
ArduinoCloudDevice::State ArduinoCloudDevice::handleSendCapabilities() {
106
/* Sends device capabilities message */
107
- Message message = { DeviceBeginCmdId };
108
- deliver(&message);
+ DeviceBeginCmd deviceBegin = { DeviceBeginCmdId, AIOT_CONFIG_LIB_VERSION };
+ deliver(reinterpret_cast<Message*>(&deviceBegin));
109
110
/* Subscribe to device topic to request */
111
- message = { ThingBeginCmdId };
112
+ ThingBeginCmd thingBegin = { ThingBeginCmdId };
+ deliver(reinterpret_cast<Message*>(&thingBegin));
113
114
/* No device configuration received. Wait: 4s -> 8s -> 16s -> 32s -> 32s ...*/
115
_attachAttempt.retry();
0 commit comments