|
1 | 1 | # Change Log
|
2 | 2 |
|
3 |
| -## [v5.0.0](https://github.com/ARMmbed/mbed-coap/releases/tag/v5.0.0) |
4 |
| - **NOTE! Blockwise functionality has changed and it is not backward compatible. User is now responsible of freeing the data by calling sn_coap_protocol_block_remove() and must NOT free the payload anymore separately.** |
5 |
| - |
6 |
| -Here is the change needed on application side: |
| 3 | +## [v5.1.0](https://github.com/ARMmbed/mbed-coap/releases/tag/v5.1.0) |
7 | 4 |
|
8 |
| -``` |
9 |
| -if (received_coap_message->coap_status == COAP_STATUS_PARSER_BLOCKWISE_MSG_RECEIVED) { |
10 |
| - free(received_coap_header->payload_ptr); |
11 |
| -} |
| 5 | +- Introduce SN_COAP_REDUCE_BLOCKWISE_HEAP_FOOTPRINT configuration flag. |
| 6 | + Flag is disabled by default to keep the backward compatibility in place. |
| 7 | + If flag is enabled, application must NOT free the payload when it gets the COAP_STATUS_PARSER_BLOCKWISE_MSG_RECEIVED status. |
| 8 | + And application must call sn_coap_protocol_block_remove() instead. |
12 | 9 |
|
13 |
| ---> |
| 10 | +-[Full Changelog](https://github.com/ARMmbed/mbed-coap/compare/v5.0.0...v5.1.0) |
14 | 11 |
|
15 |
| -if (received_coap_message->coap_status == COAP_STATUS_PARSER_BLOCKWISE_MSG_RECEIVED) { |
16 |
| - // Free the block message from the CoAP list |
17 |
| - sn_nsdl_remove_coap_block(_nsdl_handle, address, received_coap_header->payload_len, received_coap_header->payload_ptr); |
18 |
| -} |
19 |
| -``` |
| 12 | +## [v5.0.0](https://github.com/ARMmbed/mbed-coap/releases/tag/v5.0.0) |
20 | 13 |
|
21 | 14 | - Reduce heap footprint by storing only single block when receiving a blockwise message.
|
| 15 | + * User is now responsible of freeing the data by calling sn_coap_protocol_block_remove() and must not free the payload separately. |
22 | 16 | - Bug fix: Request blockwise transfer if incoming payload length is too large and when it comes without block indication.
|
23 | 17 |
|
24 | 18 | -[Full Changelog](https://github.com/ARMmbed/mbed-coap/compare/v4.8.1...v5.0.0)
|
@@ -250,4 +244,3 @@ Extend blockwise message transfer status to have states for sending as well.
|
250 | 244 | **New feature**
|
251 | 245 |
|
252 | 246 | - Initial release of mbed-coap separated from mbed-client-c
|
253 |
| - |
0 commit comments