-
Hello, I am trying to use to I have 2 boards a leader and a child, the child is sending the first part of the message using OtTcpSendByReference, then change the size message using OtTcpSendByExtension and finally send the second part of the message with OtTcpSendByReference. The result I observe is the "msg1" + "/0" + "/0" + "msg2", I was expecting "msg1" + "msg2" instead. What is the message I should expect ? I join the board2 code under board 1 is just waiting to receive by reference or by extension.
The message I get on Borad 1 is "Board2\0\0 | Adding message by extension " Is it what I am supposed to have ? I wanted to have "Board2 | Adding message by extension " Regards, Estelle |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Check the documentation of Here are some suggestions:
cc: @samkumar. |
Beta Was this translation helpful? Give feedback.
Check the documentation of
otTcpSendByExtension()
.Here are some suggestions:
"Board 2 | Adding message by extnsion"
.otLinkedBuffer
persist (should not be be local stack variables).otLinkedBuffer
and copy the first message into buffer.otTcpSendByReference()
which takes ownership of theotLinkBuffer
(so we should not change it anymore).otLinkBuffer
'smLength
field (it is owned by TCP stack now).