My network is organized as follows.
The network has Coordinator and a bunch of EndDevices. Coordinator table is stored devices which access is allowed to connect to the network, if the final DEVICE is not in the table, the coordinator sends the device command ZDP_MgmtLeaveReq (& dstAddr, deviceAnnce.extAddr, true, false, false);
But the final device is constantly trying to connect to the network tracking their status:
GenericApp_NwkState! = DEV_END_DEVICE
And tries to reconnect to the network using:
ZDOInitDevice (0);
The problem follows.
But if the EndDevice receives a certain number of failures in the connection it ceases attempts to connect to the network until it is completely reflash. I understand this is due to the fact that the EndDevice makes an entry in his memory, to the network do not need to be connected. How do I configure ZDO_Task () that the device is always connected to the network without a complete re-flashing the device?