Skip to content

Commit a289936

Browse files
author
Cruz Monrreal
authored
Merge pull request #6618 from anttiylitokola/master
Update mbed-coap to version 4.4.2
2 parents 4343253 + 1feb700 commit a289936

File tree

3 files changed

+18
-3
lines changed

3 files changed

+18
-3
lines changed

features/FEATURE_COMMON_PAL/mbed-coap/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Change Log
22

3+
## [v4.4.2](https://github.com/ARMmbed/mbed-coap/releases/tag/v4.4.2)
4+
**Closed issues:**
5+
- IOTCLT-2469 CoAP UDP retransmission does not work for blocks after first one for requests (Eg. registration POST)
6+
7+
-[Full Changelog](https://github.com/ARMmbed/mbed-coap/compare/v4.4.1...v4.4.2)
8+
39
## [v4.4.1](https://github.com/ARMmbed/mbed-coap/releases/tag/v4.4.1)
410
**Closed issues:**
511
- IOTCLT-2539 Block wise messaging call-backs not working logically

features/FEATURE_COMMON_PAL/mbed-coap/module.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mbed-coap",
3-
"version": "4.4.1",
3+
"version": "4.4.2",
44
"description": "COAP library",
55
"keywords": [
66
"coap",

features/FEATURE_COMMON_PAL/mbed-coap/source/sn_coap_protocol.c

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1732,8 +1732,17 @@ static sn_coap_hdr_s *sn_coap_handle_blockwise_message(struct coap_s *handle, sn
17321732
}
17331733

17341734
sn_coap_builder_2(dst_ack_packet_data_ptr, src_coap_blockwise_ack_msg_ptr, handle->sn_coap_block_data_size);
1735+
17351736
handle->sn_coap_tx_callback(dst_ack_packet_data_ptr, dst_packed_data_needed_mem, src_addr_ptr, param);
17361737

1738+
#if ENABLE_RESENDINGS
1739+
uint32_t resend_time = sn_coap_calculate_new_resend_time(handle->system_time, handle->sn_coap_resending_intervall, 0);
1740+
sn_coap_protocol_linked_list_send_msg_store(handle, src_addr_ptr,
1741+
dst_packed_data_needed_mem,
1742+
dst_ack_packet_data_ptr,
1743+
resend_time, param);
1744+
#endif
1745+
17371746
handle->sn_coap_protocol_free(dst_ack_packet_data_ptr);
17381747
dst_ack_packet_data_ptr = 0;
17391748

@@ -2053,13 +2062,13 @@ static sn_coap_hdr_s *sn_coap_handle_blockwise_message(struct coap_s *handle, sn
20532062
handle->sn_coap_tx_callback(dst_ack_packet_data_ptr,
20542063
dst_packed_data_needed_mem, src_addr_ptr, param);
20552064

2056-
#if ENABLE_RESENDINGS
2065+
#if ENABLE_RESENDINGS
20572066
uint32_t resend_time = sn_coap_calculate_new_resend_time(handle->system_time, handle->sn_coap_resending_intervall, 0);
20582067
sn_coap_protocol_linked_list_send_msg_store(handle, src_addr_ptr,
20592068
dst_packed_data_needed_mem,
20602069
dst_ack_packet_data_ptr,
20612070
resend_time, param);
2062-
#endif
2071+
#endif
20632072
handle->sn_coap_protocol_free(dst_ack_packet_data_ptr);
20642073
dst_ack_packet_data_ptr = 0;
20652074
}

0 commit comments

Comments
 (0)