riot_sys

Function coap_opt_get_uint

Source
pub unsafe extern "C" fn coap_opt_get_uint(
    pkt: *mut coap_pkt_t,
    optnum: u16,
    value: *mut u32,
) -> c_int
Expand description

@brief Get a uint32 option value

@param[in] pkt packet to read from @param[in] optnum absolute option number @param[out] value the parsed option value

@return 0 if the option was found and the value was parsed correctly @return -ENOENT if the option was not found in @p pkt @return -ENOSPC if option length is greater than 4 octets @return -EBADMSG if option value is invalid