[−][src]Function openthread_sys::otCoapMessageAppendOption
pub unsafe extern "C" fn otCoapMessageAppendOption(
aMessage: *mut otMessage,
aNumber: u16,
aLength: u16,
aValue: *const c_void
) -> otError
This function appends a CoAP option in a header.
@param[inout] aMessage A pointer to the CoAP message. @param[in] aNumber The CoAP Option number. @param[in] aLength The CoAP Option length. @param[in] aValue A pointer to the CoAP value.
@retval OT_ERROR_NONE Successfully appended the option. @retval OT_ERROR_INVALID_ARGS The option type is not equal or greater than the last option type. @retval OT_ERROR_NO_BUFS The option length exceeds the buffer size.