Skip to content

Commit 1a60611

Browse files
MessageEncoder removing params
1 parent d128f9d commit 1a60611

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/cbor/MessageEncoder.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Encoder::Status OtaBeginCommandEncoder::encode(CborEncoder* encoder, Message *ms
3333
return Encoder::Status::Error;
3434
}
3535

36-
if(cbor_encode_byte_string(&array_encoder, otaBeginUp->params.sha, SHA256_SIZE) != CborNoError) {
36+
if(cbor_encode_byte_string(&array_encoder, otaBeginUp->sha, SHA256_SIZE) != CborNoError) {
3737
return Encoder::Status::Error;
3838
}
3939

@@ -52,7 +52,7 @@ Encoder::Status ThingBeginCommandEncoder::encode(CborEncoder* encoder, Message *
5252
return Encoder::Status::Error;
5353
}
5454

55-
if(cbor_encode_text_stringz(&array_encoder, thingBeginCmd->params.thing_id) != CborNoError) {
55+
if(cbor_encode_text_stringz(&array_encoder, thingBeginCmd->thing_id) != CborNoError) {
5656
return Encoder::Status::Error;
5757
}
5858

@@ -77,7 +77,7 @@ Encoder::Status DeviceBeginCommandEncoder::encode(CborEncoder* encoder, Message
7777
return Encoder::Status::Error;
7878
}
7979

80-
if(cbor_encode_text_stringz(&array_encoder, deviceBeginCmd->params.lib_version) != CborNoError) {
80+
if(cbor_encode_text_stringz(&array_encoder, deviceBeginCmd->lib_version) != CborNoError) {
8181
return Encoder::Status::Error;
8282
}
8383

@@ -96,19 +96,19 @@ Encoder::Status OtaProgressCommandUpEncoder::encode(CborEncoder* encoder, Messag
9696
return Encoder::Status::Error;
9797
}
9898

99-
if(cbor_encode_byte_string(&array_encoder, ota->params.id, ID_SIZE) != CborNoError) {
99+
if(cbor_encode_byte_string(&array_encoder, ota->id, ID_SIZE) != CborNoError) {
100100
return Encoder::Status::Error;
101101
}
102102

103-
if(cbor_encode_simple_value(&array_encoder, ota->params.state) != CborNoError) {
103+
if(cbor_encode_simple_value(&array_encoder, ota->state) != CborNoError) {
104104
return Encoder::Status::Error;
105105
}
106106

107-
if(cbor_encode_int(&array_encoder, ota->params.state_data) != CborNoError) {
107+
if(cbor_encode_int(&array_encoder, ota->state_data) != CborNoError) {
108108
return Encoder::Status::Error;
109109
}
110110

111-
if(cbor_encode_uint(&array_encoder, ota->params.time) != CborNoError) {
111+
if(cbor_encode_uint(&array_encoder, ota->time) != CborNoError) {
112112
return Encoder::Status::Error;
113113
}
114114

0 commit comments

Comments
 (0)