mirror of
https://github.com/espressif/openthread.git
synced 2026-07-09 22:00:19 +00:00
[mle] new API to trigger search for better parent (#8018)
This commit adds `otThreadSearchForBetterParent()` to start the process on a child to search for a better parent while staying attached to its current parent. This commit also adds a related CLI command `parent search`.
This commit is contained in:
committed by
GitHub
parent
d1d8c6fecd
commit
f33a586530
@@ -377,6 +377,11 @@ exit:
|
||||
return error;
|
||||
}
|
||||
|
||||
otError otThreadSearchForBetterParent(otInstance *aInstance)
|
||||
{
|
||||
return AsCoreType(aInstance).Get<Mle::Mle>().SearchForBetterParent();
|
||||
}
|
||||
|
||||
otError otThreadSetEnabled(otInstance *aInstance, bool aEnabled)
|
||||
{
|
||||
Error error = kErrorNone;
|
||||
|
||||
Reference in New Issue
Block a user