Modification of the Thread message header

Hello

In my project, I am using the Thread network. I can communicate with all the devices on the network but there is a particular case that I don't know how to solve.

I have device '1' sending a confirmable message to device '2'. To resolve this request, device '2' needs time so I would like device '2' to send an ack and then later it will send the response. My problem is that I can't remove/add message ID and token to my messages.

I would like to be able to include the message ID in my first message (ack) and then the token in my second message. I tried the "otCoapMessageInitResponse(...)" function but it includes the token and the message ID in my frame and I can't remove either of them.

I also tried to create a new frame (otCoapNewMessage() + otCoapMessageInit()) and there I can add the token (otCoapMessageSetToken()) but I did not find a function to add an ID message...

Do you know how I should go about defining the content of my messages?

Thanks

Parents Reply Children
Related