Coap-Server Coap-Client Example / OpenThread Border Router

Hi,

I am developing Coap-Client and Coap-Server devices using nRf52840 dev kit. I am using ncs 1.7.1 sdk. I have a few questions.


1- I can successfully send a data received from Coap-Client to the Border Router, but after a while, the Coap-Server, the Router, declares itself as the Leader and disconnects from the network (connects back as a child device) and does not become a router again. What is the reason for this?


2- The Coap-Server device creates a different ip address each time and I have to change the address to which the coap-client will send the data. Is there a shorter way to send data to the router it connects to every time without changing the ip address in unicast without multicasting?


3- Coap client must first send data to coap-server and then coap-server must send the data it receives to Border Router, for this I made some changes in coap-server, it is working now, but a data received from Border Router is Cannot send to Coap-Client (route same order (BR-Server-Client)) , what should I do about it?

Thank you for your help!

Related