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