Skip to content

Commit 2774e3f

Browse files
author
Antti Yli-Tokola
committed
Update mbed-coap to version 5.0.0
- Reduce heap footprint by storing only single block when receiving a blockwise message. * User is now responsible of freeing the data by calling sn_coap_protocol_block_remove() and must not free the payload separately. - Bug fix: Request blockwise transfer if incoming payload length is too large and when it comes without block indication.
1 parent d2c0591 commit 2774e3f

File tree

4 files changed

+243
-99
lines changed

4 files changed

+243
-99
lines changed

features/frameworks/mbed-coap/CHANGELOG.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
# Change Log
22

3-
## [v4.8.1(https://github.com/ARMmbed/mbed-coap/releases/tag/v4.8.1)
3+
## [v5.0.0](https://github.com/ARMmbed/mbed-coap/releases/tag/v5.0.0)
4+
5+
- Reduce heap footprint by storing only single block when receiving a blockwise message.
6+
* User is now responsible of freeing the data by calling sn_coap_protocol_block_remove() and must not free the payload separately.
7+
- Bug fix: Request blockwise transfer if incoming payload length is too large and when it comes without block indication.
8+
9+
-[Full Changelog](https://github.com/ARMmbed/mbed-coap/compare/v4.8.1...v5.0.0)
10+
11+
## [v4.8.1](https://github.com/ARMmbed/mbed-coap/releases/tag/v4.8.1)
412
- Store ACK's also into duplicate info list.
513
- ROM size optimization. Flash size has gone down ~1100 bytes.
614

features/frameworks/mbed-coap/mbed-coap/sn_coap_header.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ typedef enum sn_coap_status_ {
157157
COAP_STATUS_PARSER_BLOCKWISE_ACK = 4, /**< Acknowledgement for sent Blockwise message received */
158158
COAP_STATUS_PARSER_BLOCKWISE_MSG_REJECTED = 5, /**< Blockwise message received but not supported by compiling switch */
159159
COAP_STATUS_PARSER_BLOCKWISE_MSG_RECEIVED = 6, /**< Blockwise message fully received and returned to app.
160-
User must take care of releasing whole payload of the blockwise messages */
160+
User is responsible of freeing the data by calling sn_coap_protocol_block_remove() */
161161
COAP_STATUS_BUILDER_MESSAGE_SENDING_FAILED = 7, /**< When re-transmissions have been done and ACK not received, CoAP library calls
162162
RX callback with this status */
163163

features/frameworks/mbed-coap/source/include/sn_coap_protocol_internal.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ typedef struct coap_blockwise_payload_ {
9797

9898
uint16_t payload_len;
9999
uint8_t *payload_ptr;
100+
unsigned int use_size1:1;
100101

101102
ns_list_link_t link;
102103
} coap_blockwise_payload_s;

0 commit comments

Comments
 (0)