|
36 | 36 |
|
37 | 37 | /**
|
38 | 38 | * \def SN_COAP_MAX_BLOCKWISE_PAYLOAD_SIZE
|
39 |
| - * |
40 | 39 | * \brief For Message blockwising
|
41 | 40 | * Init value for the maximum payload size to be sent and received at one blockwise message
|
42 | 41 | * Setting of this value to 0 with SN_COAP_BLOCKWISE_ENABLED will disable this feature, and
|
|
45 | 44 | */
|
46 | 45 | #undef 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
|
47 | 46 |
|
48 |
| -/** |
49 |
| - * \def COAP_DISABLE_OBS_FEATURE |
50 |
| - * |
51 |
| - * \brief Disables CoAP 'obs' sending feature |
52 |
| - * as part of registration message, this might be |
53 |
| - * needed to be enabled for some strict LWM2M server implementation. |
54 |
| - * By default, this feature is disabled. |
55 |
| - */ |
56 |
| -#undef COAP_DISABLE_OBS_FEATURE |
57 |
| - |
58 | 47 | /**
|
59 | 48 | * \def SN_COAP_DISABLE_RESENDINGS
|
60 |
| - * |
61 | 49 | * \brief Disables resending feature. Resending feature should not be needed
|
62 | 50 | * when using CoAP with TCP transport for example. By default resendings are
|
63 | 51 | * enabled. Set to 1 to disable.
|
|
66 | 54 |
|
67 | 55 | /**
|
68 | 56 | * \def SN_COAP_RESENDING_QUEUE_SIZE_MSGS
|
69 |
| - * |
70 | 57 | * \brief Sets the number of messages stored
|
71 | 58 | * in the resending queue. Default is 2
|
72 | 59 | */
|
73 | 60 | #undef SN_COAP_RESENDING_QUEUE_SIZE_MSGS /* 2 */ // < Default re-sending queue size - defines how many messages can be stored. Setting this to 0 disables feature
|
74 | 61 |
|
| 62 | +/** |
| 63 | + * \def DEFAULT_RESPONSE_TIMEOUT |
| 64 | + * \brief Sets the CoAP re-send interval in seconds. |
| 65 | + * By default is 10 seconds. |
| 66 | + */ |
| 67 | +#undef DEFAULT_RESPONSE_TIMEOUT |
| 68 | + |
75 | 69 | /**
|
76 | 70 | * \def SN_COAP_RESENDING_QUEUE_SIZE_BYTES
|
77 |
| - * |
78 | 71 | * \brief Sets the size of the re-sending buffer.
|
79 | 72 | * Setting this to 0 disables this feature.
|
80 | 73 | * By default, this feature is disabled.
|
|
83 | 76 |
|
84 | 77 | /**
|
85 | 78 | * \def SN_COAP_MAX_INCOMING_MESSAGE_SIZE
|
86 |
| - * |
87 | 79 | * \brief Sets the maximum size (in bytes) that
|
88 | 80 | * mbed Client will allow to be handled while
|
89 | 81 | * receiving big payload in blockwise mode.
|
|
115 | 107 | */
|
116 | 108 | #undef SN_COAP_BLOCKWISE_ENABLED /* 0 */
|
117 | 109 |
|
| 110 | +/** |
| 111 | + * \def SN_COAP_RESENDING_MAX_COUNT |
| 112 | + * \brief Defines how many times CoAP library tries to re-send the CoAP packet. |
| 113 | + * By default value is 3. |
| 114 | + */ |
| 115 | +#undef SN_COAP_RESENDING_MAX_COUNT /* 3 */ |
| 116 | + |
| 117 | +/** |
| 118 | + * \def SN_COAP_MAX_ALLOWED_RESENDING_COUNT |
| 119 | + * \brief Maximum allowed count of re-sending that can be set at runtime via |
| 120 | + * 'sn_coap_protocol_set_retransmission_parameters()' API. |
| 121 | + * By default value is 6. |
| 122 | + */ |
| 123 | +#undef SN_COAP_MAX_ALLOWED_RESENDING_COUNT /* 6 */ |
| 124 | + |
| 125 | +/** |
| 126 | + * \def SN_COAP_MAX_ALLOWED_RESPONSE_TIMEOUT |
| 127 | + * \brief Maximum allowed re-send interval in seconds that can be set at runtime via |
| 128 | + * 'sn_coap_protocol_set_retransmission_parameters()' API. |
| 129 | + * By default value is 40. |
| 130 | + */ |
| 131 | +#undef SN_COAP_MAX_ALLOWED_RESPONSE_TIMEOUT /* 40 */ |
| 132 | + |
| 133 | +/** |
| 134 | + * \def SN_COAP_MAX_ALLOWED_RESENDING_BUFF_SIZE_MSGS |
| 135 | + * \brief Maximum allowed count of messages that can be stored into resend buffer at runtime via |
| 136 | + * 'sn_coap_protocol_set_retransmission_buffer()' API. |
| 137 | + * By default value is 6. |
| 138 | + */ |
| 139 | +#undef SN_COAP_MAX_ALLOWED_RESENDING_BUFF_SIZE_MSGS /* 6 */ |
| 140 | + |
| 141 | +/** |
| 142 | + * \def SN_COAP_MAX_ALLOWED_RESENDING_BUFF_SIZE_BYTES |
| 143 | + * \brief Maximum size of messages in bytes that can be stored into resend buffer at runtime via |
| 144 | + * 'sn_coap_protocol_set_retransmission_buffer()' API. |
| 145 | + * By default value is 512. |
| 146 | + */ |
| 147 | +#undef SN_COAP_MAX_ALLOWED_RESENDING_BUFF_SIZE_BYTES /* 512 */ |
| 148 | + |
| 149 | +/** |
| 150 | + * \def SN_COAP_MAX_ALLOWED_DUPLICATION_MESSAGE_COUNT |
| 151 | + * \brief Maximum allowed number of saved messages for message duplicate searching |
| 152 | + * that can be set via 'sn_coap_protocol_set_duplicate_buffer_size' API. |
| 153 | + * By default value is 6. |
| 154 | + */ |
| 155 | +#undef SN_COAP_MAX_ALLOWED_DUPLICATION_MESSAGE_COUNT |
| 156 | + |
| 157 | +/** |
| 158 | + * \def SN_COAP_DUPLICATION_MAX_TIME_MSGS_STORED |
| 159 | + * \brief Maximum time in seconds howe long message is kept for duplicate detection. |
| 160 | + * By default 60 seconds. |
| 161 | + */ |
| 162 | +#undef SN_COAP_DUPLICATION_MAX_TIME_MSGS_STORED |
| 163 | + |
| 164 | +/** |
| 165 | + * \def SN_COAP_BLOCKWISE_MAX_TIME_DATA_STORED |
| 166 | + * \brief Maximum time in seconds how long (messages and payload) are be stored for blockwising. |
| 167 | + * Longer time will increase the memory consumption in lossy networks. |
| 168 | + * By default 60 seconds. |
| 169 | + */ |
| 170 | +#undef SN_COAP_BLOCKWISE_MAX_TIME_DATA_STORED |
| 171 | + |
| 172 | +/** |
| 173 | + * \def SN_COAP_MAX_INCOMING_BLOCK_MESSAGE_SIZE |
| 174 | + * \brief Maximum size of blockwise message that can be received. |
| 175 | + * By default 65535 bytes. |
| 176 | + */ |
| 177 | +#undef SN_COAP_MAX_INCOMING_BLOCK_MESSAGE_SIZE |
| 178 | + |
118 | 179 | #ifdef MBED_CLIENT_USER_CONFIG_FILE
|
119 | 180 | #include MBED_CLIENT_USER_CONFIG_FILE
|
120 | 181 | #endif
|
|
0 commit comments