Struct anj_exchange_udp_tx_params_t
Defined in File defs.h
Struct Documentation
-
struct anj_exchange_udp_tx_params_t
CoAP transmission parameters (RFC 7252).
These parameters control the timing and retransmission behavior of confirmable CoAP messages sent over UDP.
The initial retransmission timeout is chosen randomly between ack_timeout and ack_timeout × ack_random_factor. With default values, this corresponds to a range of 2—3 seconds. After each retransmission, the timeout value is doubled.
Retransmissions continue until either a response is received or max_retransmit attempts have been made.
Public Members
-
anj_time_duration_t ack_timeout
Initial ACK_TIMEOUT value.
-
double ack_random_factor
ACK_RANDOM_FACTOR multiplier applied to randomize the timeout.
-
uint16_t max_retransmit
Maximum number of retransmissions before giving up.
-
anj_time_duration_t ack_timeout