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 @@ -104,12 +104,12 @@ ArduinoCloudDevice::State ArduinoCloudDevice::handleInit() {
104
104
105
105
ArduinoCloudDevice::State ArduinoCloudDevice::handleSendCapabilities () {
106
106
/* Sends device capabilities message */
107
- Message message = { DeviceBeginCmdId };
108
- deliver (&message );
107
+ DeviceBeginCmd deviceBegin = { DeviceBeginCmdId, AIOT_CONFIG_LIB_VERSION };
108
+ deliver (reinterpret_cast <Message*>(&deviceBegin) );
109
109
110
110
/* Subscribe to device topic to request */
111
- message = { ThingBeginCmdId };
112
- deliver (&message );
111
+ ThingBeginCmd thingBegin = { ThingBeginCmdId };
112
+ deliver (reinterpret_cast <Message*>(&thingBegin) );
113
113
114
114
/* No device configuration received. Wait: 4s -> 8s -> 16s -> 32s -> 32s ...*/
115
115
_attachAttempt.retry ();
You can’t perform that action at this time.
0 commit comments