ot::Coap::Message::SetToken() method
Sets the Token value and length.
Arguments
aToken
A pointer to the Token value.
aTokenLength
The Length of @p aToken.
Return value
kErrorNone Successfully set the token value. kErrorNoBufs Insufficient message buffers available to set the token value.