1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/sys/net/application_layer/Kconfig.coap
2024-03-27 10:28:12 +01:00

44 lines
1.8 KiB
Plaintext

# Copyright (c) 2020 HAW Hamburg
#
# This file is subject to the terms and conditions of the GNU Lesser
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
#
menu "CoAP generic options"
depends on USEMODULE_NANOCOAP || USEMODULE_GCOAP
config COAP_ACK_TIMEOUT_MS
int "Timeout in milliseconds for a response to a confirmable request"
default 2000
help
This value is for the response to the initial confirmable message. The
timeout doubles for subsequent retries. To avoid synchronization of
resends across hosts, the actual timeout is chosen randomly between
@ref CONFIG_COAP_ACK_TIMEOUT_MS and
(@ref CONFIG_COAP_ACK_TIMEOUT_MS * @ref CONFIG_COAP_RANDOM_FACTOR_1000 / 1000).
The default of 2 seconds is taken from
[RFC 7252, section 4.8](https://tools.ietf.org/html/rfc7252#section-4.8).
config COAP_RANDOM_FACTOR_1000
int "Timeout random factor (multiplied by 1000)"
default 1500
help
This value is used to calculate the upper bound for the timeout. It
represents the `ACK_RANDOM_FACTOR`
([RFC 7252, section 4.2](https://tools.ietf.org/html/rfc7252#section-4.2))
multiplied by 1000, to avoid floating point arithmetic.
The default that represents 1.5 seconds is taken from
The default of 2 seconds is taken from
[RFC 7252, section 4.8](https://tools.ietf.org/html/rfc7252#section-4.8).
config COAP_MAX_RETRANSMIT
int "Maximum number of retransmissions"
default 4
help
Maximum number of retransmissions for a confirmable request. The default
of 4 retransmissions is taken from
[RFC 7252, section 4.8](https://tools.ietf.org/html/rfc7252#section-4.8).
endmenu # CoAP generic options