A small footprint MQTT library
Dependents: STM32F746_iothub_client_sample_mqtt FXOS8700CQ_To_Azure_IoT f767zi_mqtt FXOS8700CQ_To_Azure_IoT ... more
Diff: mqtt_codec.c
- Revision:
- 20:a8254fa69b6c
- Parent:
- 15:ec5a36121959
- Child:
- 22:786a74c2d89b
--- a/mqtt_codec.c Mon Sep 11 09:23:23 2017 -0700 +++ b/mqtt_codec.c Sat Oct 21 20:12:49 2017 +0000 @@ -541,7 +541,7 @@ { result = 0; codecData->storeRemainLen[codecData->remainLenIndex++] = remainLen; - if (remainLen < 0x7f) + if (remainLen <= 0x7f) { int multiplier = 1; int totalLen = 0;