ot::Coap::Message::GenerateRandomToken() method
Sets the Token length and randomizes its value.
Arguments
aTokenLength
The Length of a Token to set.
Return value
kErrorNone Successfully set the token value. kErrorNoBufs Insufficient message buffers available to set the token value.
ot::Coap::Message::GenerateRandomToken() is called by 2 functions and calls 4 functions:
![]()
ot::Coap::Message::GenerateRandomToken()
ot::Coap::Message::GenerateRandomToken() reads 1 variable:
![]()
ot::Coap::Message::GenerateRandomToken()