openthread_sys

Function otBorderRoutingSetRoutePreference

Source
pub unsafe extern "C" fn otBorderRoutingSetRoutePreference(
    aInstance: *mut otInstance,
    aPreference: otRoutePreference,
)
Expand description

Explicitly sets the preference of published routes in Network Data.

After a call to this function, BR will use the given preference. The preference can be cleared by calling otBorderRoutingClearRoutePreference().

@param[in] aInstance A pointer to an OpenThread instance. @param[in] aPreference The route preference to use.