@@ -412,7 +412,7 @@ void ArduinoIoTCloudTCP::handleMessage(int length)
412412 case CommandId::ThingUpdateCmdId:
413413 {
414414 DEBUG_VERBOSE (" ArduinoIoTCloudTCP::%s [%d] device configuration received" , __FUNCTION__, millis ());
415- String new_thing_id = String (command.thingUpdateCmd .params . thing_id );
415+ String new_thing_id = String (command.thingUpdateCmd .thing_id );
416416
417417 if (!new_thing_id.length ()) {
418418 /* Send message to device state machine to inform we have received a null thing-id */
@@ -433,7 +433,7 @@ void ArduinoIoTCloudTCP::handleMessage(int length)
433433
434434 case CommandId::ThingDetachCmdId:
435435 {
436- if (!_device.isAttached () || _thing_id != String (command.thingDetachCmd .params . thing_id )) {
436+ if (!_device.isAttached () || _thing_id != String (command.thingDetachCmd .thing_id )) {
437437 DEBUG_VERBOSE (" ArduinoIoTCloudTCP::%s [%d] thing detach rejected" , __FUNCTION__, millis ());
438438 }
439439
@@ -453,8 +453,8 @@ void ArduinoIoTCloudTCP::handleMessage(int length)
453453 {
454454 DEBUG_VERBOSE (" ArduinoIoTCloudTCP::%s [%d] last values received" , __FUNCTION__, millis ());
455455 CBORDecoder::decode (_thing.getPropertyContainer (),
456- (uint8_t *)command.lastValuesUpdateCmd .params . last_values ,
457- command.lastValuesUpdateCmd .params . length , true );
456+ (uint8_t *)command.lastValuesUpdateCmd .last_values ,
457+ command.lastValuesUpdateCmd .length , true );
458458 _thing.handleMessage ((Message*)&command);
459459 execCloudEventCallback (ArduinoIoTCloudEvent::SYNC);
460460
@@ -463,7 +463,7 @@ void ArduinoIoTCloudTCP::handleMessage(int length)
463463 * modeling the messages with C structs. The current CBOR library allocates an array in the heap
464464 * thus we need to delete it after decoding it with the old CBORDecoder
465465 */
466- free (command.lastValuesUpdateCmd .params . last_values );
466+ free (command.lastValuesUpdateCmd .last_values );
467467 }
468468 break ;
469469
0 commit comments