openthread_sys

Function otCoapOptionIteratorGetOptionValue

Source
pub unsafe extern "C" fn otCoapOptionIteratorGetOptionValue(
    aIterator: *mut otCoapOptionIterator,
    aValue: *mut c_void,
) -> otError
Expand description

Fills current option value into @p aValue.

@param[in,out] aIterator A pointer to the CoAP message option iterator. @param[out] aValue A pointer to a buffer to receive the option value.

@retval OT_ERROR_NONE Successfully filled value. @retval OT_ERROR_NOT_FOUND No current option.