Serial Communication between XBee using Arduino

Assuming the code in Reply #20 is what gave rise to the error message in Reply #18, I can't figure out what the problem might be without knowing the line number reported along with the error message. Post the complete error message.

For example, suppose we sending data from Router 1 to Router 5 with a location of (2,34). So, the data received at Router 5 will be 1234.

There will be no ambiguity. On the receiving side there will also be an array with 3 elements. receivedData[0] will have the ID number; receivedData[1] will have the xValue and receivedData[2] will have the yValue. (Obviously you can choose your own array name)

...R