@@ -71,7 +71,7 @@ struct sn_coap_hdr_;
71
71
#define SN_COAP_MAX_ALLOWED_RESENDING_BUFF_SIZE_BYTES 512 /**< Maximum allowed size of re-sending buffer */
72
72
#define SN_COAP_MAX_ALLOWED_RESPONSE_TIMEOUT 40 /**< Maximum allowed re-sending timeout */
73
73
74
- #define RESPONSE_RANDOM_FACTOR 1 /**< Resending random factor, value is specified in IETF CoAP specification */
74
+ #define RESPONSE_RANDOM_FACTOR 1.5 /**< Resending random factor, value is specified in IETF CoAP specification */
75
75
76
76
/* * For Message duplication detecting * */
77
77
@@ -113,9 +113,12 @@ struct sn_coap_hdr_;
113
113
#define SN_COAP_MAX_BLOCKWISE_PAYLOAD_SIZE 0 /**< Must be 2^x and x is at least 4. Suitable values: 0, 16, 32, 64, 128, 256, 512 and 1024 */
114
114
#endif
115
115
116
+ #ifdef MBED_CONF_MBED_CLIENT_SN_COAP_BLOCKWISE_MAX_TIME_DATA_STORED
117
+ #define SN_COAP_BLOCKWISE_MAX_TIME_DATA_STORED MBED_CONF_MBED_CLIENT_SN_COAP_BLOCKWISE_MAX_TIME_DATA_STORED
118
+ #endif
116
119
117
120
#ifndef SN_COAP_BLOCKWISE_MAX_TIME_DATA_STORED
118
- #define SN_COAP_BLOCKWISE_MAX_TIME_DATA_STORED 10 /**< Maximum time in seconds of data (messages and payload) to be stored for blockwising */
121
+ #define SN_COAP_BLOCKWISE_MAX_TIME_DATA_STORED 60 /**< Maximum time in seconds of data (messages and payload) to be stored for blockwising */
119
122
#endif
120
123
121
124
#ifdef YOTTA_CFG_COAP_MAX_INCOMING_BLOCK_MESSAGE_SIZE
@@ -156,16 +159,13 @@ typedef NS_LIST_HEAD(coap_send_msg_s, link) coap_send_msg_list_t;
156
159
/* Structure which is stored to Linked list for message duplication detection purposes */
157
160
typedef struct coap_duplication_info_ {
158
161
uint32_t timestamp ; /* Tells when duplication information is stored to Linked list */
159
-
160
- uint8_t addr_len ;
161
- uint8_t * addr_ptr ;
162
- uint16_t port ;
163
-
164
162
uint16_t msg_id ;
165
-
163
+ uint16_t packet_len ;
164
+ uint8_t * packet_ptr ;
166
165
struct coap_s * coap ; /* CoAP library handle */
167
-
168
- ns_list_link_t link ;
166
+ sn_nsdl_addr_s * address ;
167
+ void * param ;
168
+ ns_list_link_t link ;
169
169
} coap_duplication_info_s ;
170
170
171
171
typedef NS_LIST_HEAD (coap_duplication_info_s , link ) coap_duplication_info_list_t ;
0 commit comments