Hi,
As I am understanding the router left the network and you are looking for the Leave Indication.
You could define the #define BDB_SET_DEFAULT_TC_POLICY (FALSE) as true in the bdb_options.h
You are defining a callback that you can add the event that you are looking for. bdb_nf.c
PRIVATE bool vNfTcCallback (uint16 u16ShortAddress,
uint64 u64DeviceAddress,
uint64 u64ParentAddress,
uint8 u8Status,
uint16 u16MacId )
{
.
.
.
else if(u8Status == BDB_TC_STATUS_DEVICE_LEFT)
{
DBG_vPrintf(TRUE,"BDB_TC_STATUS_DEVICE_LEFT %d\r\n",u8Status);
DBG_vPrintf(TRUE,"u64DeviceAddress %016x\n",u64DeviceAddress);
DBG_vPrintf(TRUE,"u16ShortAddress %04x\n",u16ShortAddress);
}
.
.
.
Note: You must commend the ZPS_vTCSetCallback( APP_bSendHATransportKey ); beacuse you are defining 2 callbacks.
Hope it helps.
Regards,
Mario