openthread_sys

Function otCoapOptionIteratorGetOptionUintValue

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

Fills current option value into @p aValue assuming the current value is an unsigned integer encoded according to https://tools.ietf.org/html/rfc7252#section-3.2

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

@retval OT_ERROR_NONE Successfully filled value. @retval OT_ERROR_NOT_FOUND No current option. @retval OT_ERROR_NO_BUFS Value is too long to fit in a uint64_t.

@see otCoapMessageAppendUintOption