This is the documentation for the latest (main) development branch of Zephyr. If you are looking for the documentation of previous releases, use the drop-down menu on the left and select the desired version.

CONFIG_COAP_RANDOMIZE_ACK_TIMEOUT

Randomize initial ACK timeout, as specified in RFC 7252

Type: bool

Help

If enabled, the initial ACK timeout will be randomized, as specified
in RFC 7252, i.e. will be a random number between ACK_TIMEOUT and
ACK_TIMEOUT * ACK_RANDOM_FACTOR (where ACK_TIMEOUT is specified by
COAP_INIT_ACK_TIMEOUT_MS option). Otherwise, the initial ACK timeout
will be fixed to the value of COAP_INIT_ACK_TIMEOUT_MS option.

Direct dependencies

COAP && NETWORKING

(Includes any dependencies from ifs and menus.)

Default

  • y

Kconfig definition

At subsys/net/lib/coap/Kconfig:62

Included via Kconfig:8Kconfig.zephyr:42subsys/Kconfig:39subsys/net/Kconfig:89subsys/net/lib/Kconfig:6

Menu path: (Top) → Sub Systems and OS Services → Networking → Link layer and IP networking support → Network Protocols → CoAP Support

config COAP_RANDOMIZE_ACK_TIMEOUT
    bool "Randomize initial ACK timeout, as specified in RFC 7252"
    default y
    depends on COAP && NETWORKING
    help
      If enabled, the initial ACK timeout will be randomized, as specified
      in RFC 7252, i.e. will be a random number between ACK_TIMEOUT and
      ACK_TIMEOUT * ACK_RANDOM_FACTOR (where ACK_TIMEOUT is specified by
      COAP_INIT_ACK_TIMEOUT_MS option). Otherwise, the initial ACK timeout
      will be fixed to the value of COAP_INIT_ACK_TIMEOUT_MS option.

(The ‘depends on’ condition includes propagated dependencies from ifs and menus.)