Skip to content

How to find the Child Detach Reason #7921

Closed Answered by jwhui
eric-bj-kang asked this question in Q&A
Discussion options

You must be logged in to vote

[Q.1] Would you let me know why/when this phenomenon is occurred?

A child typically detaches if it can no longer communicate with its parent. In other words, messages sent to the parent are not acknowledged and/or no response is received.

[Q.2] Would you let me know how to find the reason in the source?

void MeshForwarder::UpdateNeighborLinkFailures(Neighbor &aNeighbor,
Error aError,
bool aAllowNeighborRemove,
uint8_t aFailLimit)
{
// Update neighbor `LinkFailures` counter on ack error.
if (aError == kErrorNone)
{
aNeighbor.ResetLinkFailures();
}

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by jwhui
Comment options

You must be logged in to vote
8 replies
@eric-bj-kang
Comment options

@jwhui
Comment options

@eric-bj-kang
Comment options

@jwhui
Comment options

@eric-bj-kang
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants