Function openthread_sys::otThreadGetLeaderRloc

source ·
pub unsafe extern "C" fn otThreadGetLeaderRloc(
    aInstance: *mut otInstance,
    aLeaderRloc: *mut otIp6Address,
) -> otError
Expand description

Returns a pointer to the Leader’s RLOC.

@param[in] aInstance A pointer to an OpenThread instance. @param[out] aLeaderRloc A pointer to the Leader’s RLOC.

@retval OT_ERROR_NONE The Leader’s RLOC was successfully written to @p aLeaderRloc. @retval OT_ERROR_INVALID_ARGS @p aLeaderRloc was NULL. @retval OT_ERROR_DETACHED Not currently attached to a Thread Partition.