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