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() {
109109
110110ArduinoCloudDevice::State ArduinoCloudDevice::handleSendCapabilities () {
111111 /* 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) );
114114
115115 /* Subscribe to device topic to request */
116- message = { ThingBeginCmdId };
117- deliver (&message );
116+ ThingBeginCmd thingBegin = { ThingBeginCmdId };
117+ deliver (reinterpret_cast <Message*>(&thingBegin) );
118118
119119 /* No device configuration received. Wait: 4s -> 8s -> 16s -> 32s -> 32s ...*/
120120 _attachAttempt.retry ();
You can’t perform that action at this time.
0 commit comments