Main Site Documentation

XBee message fragmentation


I am seeing message fragmentation (one message sent but multiple DataReceived events) when I send more than a few characters. How can I make sure I have a full message?


Data Recieved Event means you have any character recieved. The only way to deal with that is to queue the responses into a buffer and deal with the buffer when you see you get a specific message delimeter. There are many threads discussing this - including some that has great code samples from William in response to questions I posed, see

Here are some ones I’ve found:


Thanks, I have it working now.