I'm building a mesh network with xbees, arduinos and sensors.
Right now I have 2 Xbee routers and 1 coordinator. Each xbee module has an arduino attached. To communicate from the router to the coordinator, I use the Serial.println() function. Is it possible that when 2 routers communicates via serial to the coordinator, the data overlaps? For example if from Router 1 I'm sending "HELLO" and from router 2 "World", is it possible that the coordinator will receive both of them at the same time and will output "HELworlLOd"? Or does the coordinator just takes 1 "data package" at a time? If so, what happens if the coordinator is receiving some data from router 1, and at the same time router 2 sends a package? Does it get lost? Does the zigbee protocol takes care of that and makes sure that the router sends it again? Do I have to implement this in my code?