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