Function openthread_sys::otCoapMessageSetToken
source ยท pub unsafe extern "C" fn otCoapMessageSetToken(
aMessage: *mut otMessage,
aToken: *const u8,
aTokenLength: u8,
) -> otError
Expand description
Sets the Token value and length in a header.
@param[in,out] aMessage A pointer to the CoAP message. @param[in] aToken A pointer to the Token value. @param[in] aTokenLength The Length of @p aToken.
@retval OT_ERROR_NONE Successfully set the Token value. @retval OT_ERROR_NO_BUFS Insufficient buffers to set the Token value.