#[repr(C)]pub struct otCoapTxParameters {
pub mAckTimeout: u32,
pub mAckRandomFactorNumerator: u8,
pub mAckRandomFactorDenominator: u8,
pub mMaxRetransmit: u8,
}
Expand description
Represents the CoAP transmission parameters.
@note mAckTimeout * ((2 ** (mMaxRetransmit + 1)) - 1) * (mAckRandomFactorNumerator / mAckRandomFactorDenominator) must not exceed what can be represented by a uint32_t (0xffffffff). This limitation allows OpenThread to avoid 64-bit arithmetic.
Fields§
§mAckTimeout: u32
Minimum spacing before first retransmission when ACK is not received, in milliseconds (RFC7252 default value is 2000ms).
mAckRandomFactorNumerator: u8
Numerator of ACK_RANDOM_FACTOR used to calculate maximum spacing before first retransmission when ACK is not received (RFC7252 default value of ACK_RANDOM_FACTOR is 1.5; must not be decreased below 1).
mAckRandomFactorDenominator: u8
Denominator of ACK_RANDOM_FACTOR used to calculate maximum spacing before first retransmission when ACK is not received (RFC7252 default value of ACK_RANDOM_FACTOR is 1.5; must not be decreased below 1).
mMaxRetransmit: u8
Maximum number of retransmissions for CoAP Confirmable messages (RFC7252 default value is 4).
Trait Implementations§
Source§impl Clone for otCoapTxParameters
impl Clone for otCoapTxParameters
Source§fn clone(&self) -> otCoapTxParameters
fn clone(&self) -> otCoapTxParameters
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more