diff --git a/sys/include/net/nanocoap.h b/sys/include/net/nanocoap.h index 0eb869c6a9fec2f779963f7787a2c222ab1b5a21..5b113eedc8e4f59d6f8b876e4a520912f5237d46 100644 --- a/sys/include/net/nanocoap.h +++ b/sys/include/net/nanocoap.h @@ -192,6 +192,15 @@ extern "C" { */ #define COAP_ACK_TIMEOUT (2U) #define COAP_RANDOM_FACTOR (1.5) + +/** + * @brief Maximum variation for confirmable timeout. + * + * Must be an integer, defined as: + * + * (COAP_ACK_TIMEOUT * COAP_RANDOM_FACTOR) - COAP_ACK_TIMEOUT + */ +#define COAP_ACK_VARIANCE (1U) #define COAP_MAX_RETRANSMIT (4) #define COAP_NSTART (1) #define COAP_DEFAULT_LEISURE (5)