mirror of
https://github.com/espressif/openthread.git
synced 2026-07-23 12:34:07 +00:00
Add log to indicate child supervision time out (#1744)
This commit is contained in:
committed by
Jonathan Hui
parent
a96ec77ce4
commit
005be77d3e
@@ -35,6 +35,7 @@
|
||||
#include "openthread/openthread.h"
|
||||
|
||||
#include <common/code_utils.hpp>
|
||||
#include <common/logging.hpp>
|
||||
#include <utils/child_supervision.hpp>
|
||||
#include <thread/thread_netif.hpp>
|
||||
|
||||
@@ -227,6 +228,8 @@ void SupervisionListener::HandleTimer(void)
|
||||
VerifyOrExit((mNetif.GetMle().GetDeviceState() == Mle::kDeviceStateChild) &&
|
||||
(mNetif.GetMeshForwarder().GetRxOnWhenIdle() == false));
|
||||
|
||||
otLogWarnMle(mNetif.GetInstance(), "Supervision timeout. No frame from parent in %d sec", mTimeout);
|
||||
|
||||
mNetif.GetMle().SendChildUpdateRequest();
|
||||
|
||||
exit:
|
||||
|
||||
Reference in New Issue
Block a user