openthread_sys

Function otCoapMessageAppendUriQueryOption

Source
pub unsafe extern "C" fn otCoapMessageAppendUriQueryOption(
    aMessage: *mut otMessage,
    aUriQuery: *const c_char,
) -> otError
Expand description

Appends a single Uri-Query option.

@param[in,out] aMessage A pointer to the CoAP message. @param[in] aUriQuery A pointer to NULL-terminated string, which should contain a single key=value pair.

@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.