Hi everyone,
I am trying to send a custom zigbee message by using this function zb_zcl_finish_and_send_packet_new() with a callback function to free the buffer after send. i managed to make it work but there is a problem that i haven t know how to solve.
I have a nrf52833 to work as a coordinator and some routers using button to send message (also using NRF52833) to form a zigbee mesh. By using the custom message mentioned above, the devices can communicate with each other, but when the coordinator is downed, because of the retry mechanism, sending 1 message turn in to resending the same message multiple times. With just some consecutive press at this state, the router frezze and get into hardfault.
I try to find out what is the root of the problem and it seem like because the buffer pool is full since it is not free in time thank to the retry mechanism keep the device to go into callback to free the used buffer. So i am thinking, is there any way that i can identify if the coordinator is down or not so that i can check everytime i send one. I notice that we have a signal in zigbee_helpers.c of parents unreachable but i want some thing more realtime so that i can check every time the coordinator is down.
So my question is that is there any way to check for this like reading link status or send data request message or something that i can do. And if there is one, can you show me the API of that one also.
Thank you, please reply soon,
Best regards,
TU