Skip to content

Commit 1bcdc04

Browse files
fixup! implementing cbor message decoder following cloud utils definition
1 parent ad09844 commit 1bcdc04

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/cbor/IoTCloudMessageDecoder.cpp

-5
Original file line numberDiff line numberDiff line change
@@ -114,11 +114,6 @@ MessageDecoder::Status TimezoneCommandDownDecoder::decode(CborValue* iter, Messa
114114
MessageDecoder::Status LastValuesUpdateCommandDecoder::decode(CborValue* iter, Message *msg) {
115115
LastValuesUpdateCmd * setLv = (LastValuesUpdateCmd *) msg;
116116

117-
// Message is composed by a single parameter, a variable length byte array.
118-
if (!cbor_value_is_byte_string(iter)) {
119-
return MessageDecoder::Status::Error;
120-
}
121-
122117
// Cortex M0 is not able to assign a value to pointed memory that is not 32bit aligned
123118
// we use a support variable to cope with that
124119
size_t s;

0 commit comments

Comments
 (0)