@@ -57,7 +57,7 @@ Decoder::Status ThingUpdateCommandDecoder::decode(CborValue* iter, Message *msg)
5757 ThingUpdateCmd * thingCommand = (ThingUpdateCmd *) msg;
5858
5959 // Message is composed of a single parameter, a string (thing_id)
60- if (!copyCBORStringToArray (iter, thingCommand->params . thing_id , sizeof (thingCommand->params . thing_id ))) {
60+ if (!copyCBORStringToArray (iter, thingCommand->thing_id , sizeof (thingCommand->thing_id ))) {
6161 return Decoder::Status::Error;
6262 }
6363
@@ -68,7 +68,7 @@ Decoder::Status ThingDetachCommandDecoder::decode(CborValue* iter, Message *msg)
6868 ThingDetachCmd * thingCommand = (ThingDetachCmd *) msg;
6969
7070 // Message is composed of a single parameter, a string (thing_id)
71- if (!copyCBORStringToArray (iter, thingCommand->params . thing_id , sizeof (thingCommand->params . thing_id ))) {
71+ if (!copyCBORStringToArray (iter, thingCommand->thing_id , sizeof (thingCommand->thing_id ))) {
7272 return Decoder::Status::Error;
7373 }
7474
@@ -83,7 +83,7 @@ Decoder::Status TimezoneCommandDownDecoder::decode(CborValue* iter, Message *msg
8383 if (cbor_value_is_integer (iter)) {
8484 int64_t val = 0 ;
8585 if (cbor_value_get_int64 (iter, &val) == CborNoError) {
86- setTz->params . offset = static_cast <int32_t >(val);
86+ setTz->offset = static_cast <int32_t >(val);
8787 }
8888 }
8989
@@ -96,7 +96,7 @@ Decoder::Status TimezoneCommandDownDecoder::decode(CborValue* iter, Message *msg
9696 if (cbor_value_is_integer (iter)) {
9797 uint64_t val = 0 ;
9898 if (cbor_value_get_uint64 (iter, &val) == CborNoError) {
99- setTz->params . until = static_cast <uint32_t >(val);
99+ setTz->until = static_cast <uint32_t >(val);
100100 }
101101 }
102102
@@ -111,11 +111,11 @@ Decoder::Status LastValuesUpdateCommandDecoder::decode(CborValue* iter, Message
111111 // Cortex M0 is not able to assign a value to pointed memory that is not 32bit aligned
112112 // we use a support variable to cope with that
113113 size_t s;
114- if (cbor_value_dup_byte_string (iter, &setLv->params . last_values , &s, NULL ) != CborNoError) {
114+ if (cbor_value_dup_byte_string (iter, &setLv->last_values , &s, NULL ) != CborNoError) {
115115 return Decoder::Status::Error;
116116 }
117117
118- setLv->params . length = s;
118+ setLv->length = s;
119119 }
120120
121121 return Decoder::Status::Complete;
0 commit comments