ot::Mle::MleRouter::SetRouterEligible() method
Sets whether or not the device is router-eligible. If @p aEligible is false and the device is currently operating as a router, this call will cause the device to detach and attempt to reattach as a child.
Arguments
aEligible
TRUE to configure device router-eligible, FALSE otherwise.
Return value
kErrorNone Successfully set the router-eligible configuration. kErrorNotCapable The device is not capable of becoming a router.