Main Site Documentation

XBee message fragmentation


#1

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?


#2

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 http://www.tinyclr.com/forum/2/2208/

Here are some ones I’ve found:
http://www.tinyclr.com/forum/2/3090/
http://www.tinyclr.com/forum/2/2099/


#3

Thanks, I have it working now.