ot::ChildTable::SetMaxChildrenAllowed() method
Sets the maximum number of children allowed. The number of children allowed must be at least one and at most same as maximum supported children (@sa GetMaxChildren()). It can be changed only if the child table is empty.
Arguments
aMaxChildren
Maximum number of children allowed.
Return value
kErrorNone The number of allowed children changed successfully. kErrorInvalidArgs If @p aMaxChildren is not in the range [1, Max supported children]. kErrorInvalidState The child table is not empty.
ot::ChildTable::SetMaxChildrenAllowed() calls 1 function:
![]()
ot::ChildTable::SetMaxChildrenAllowed()
ot::ChildTable::SetMaxChildrenAllowed() reads 5 variables and writes 1 variable:
![]()
ot::ChildTable::SetMaxChildrenAllowed()