pub unsafe extern "C" fn otBorderRoutingGetRoutePreference(
aInstance: *mut otInstance,
) -> otRoutePreferenceExpand description
Gets the current preference used for published routes in Network Data.
The preference is determined as follows:
- If explicitly set by user by calling
otBorderRoutingSetRoutePreference(), the given preference is used. - Otherwise, it is determined automatically by
RoutingManagerbased on the device’s role and link quality.
@param[in] aInstance A pointer to an OpenThread instance.
@returns The current published route preference.