pub unsafe extern "C" fn otThreadSetRouterIdRange(
aInstance: *mut otInstance,
aMinRouterId: u8,
aMaxRouterId: u8,
) -> otError
Expand description
Sets the range of router IDs that are allowed to assign to nodes within the thread network.
@note This API requires OPENTHREAD_CONFIG_REFERENCE_DEVICE_ENABLE
, and is only used for test purpose. All the
router IDs in the range [aMinRouterId, aMaxRouterId] are allowed.
@param[in] aInstance A pointer to an OpenThread instance. @param[in] aMinRouterId The minimum router ID. @param[in] aMaxRouterId The maximum router ID.
@retval OT_ERROR_NONE Successfully set the range. @retval OT_ERROR_INVALID_ARGS aMinRouterId > aMaxRouterId, or the range is not covered by [0, 62].
@sa otThreadGetRouterIdRange