File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -109,12 +109,12 @@ ArduinoCloudDevice::State ArduinoCloudDevice::handleInit() {
109
109
110
110
ArduinoCloudDevice::State ArduinoCloudDevice::handleSendCapabilities () {
111
111
/* Sends device capabilities message */
112
- Message message = { DeviceBeginCmdId };
113
- deliver (&message );
112
+ DeviceBeginCmd deviceBegin = { DeviceBeginCmdId, AIOT_CONFIG_LIB_VERSION };
113
+ deliver (reinterpret_cast <Message*>(&deviceBegin) );
114
114
115
115
/* Subscribe to device topic to request */
116
- message = { ThingBeginCmdId };
117
- deliver (&message );
116
+ ThingBeginCmd thingBegin = { ThingBeginCmdId };
117
+ deliver (reinterpret_cast <Message*>(&thingBegin) );
118
118
119
119
/* No device configuration received. Wait: 4s -> 8s -> 16s -> 32s -> 32s ...*/
120
120
_attachAttempt.retry ();
You can’t perform that action at this time.
0 commit comments