[][src]Function openthread_sys::otCoapMessageSetToken

pub unsafe extern "C" fn otCoapMessageSetToken(
    aMessage: *mut otMessage,
    aToken: *const u8,
    aTokenLength: u8
) -> otError

This function sets the Token value and length in a header.

@param[inout] 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.