delay(2000); //delay at startup just for safety sake
Useless, unless you just like to waste time.
Fair enough. I'd read, like the "trash character" some people have had luck with that getting their xbee into programming mode.
Serial.begin(9600);
Serial.flush();
Initiate the serial port, and immediately dump all data in the receive buffer. In the 62 nanoseconds between these two function calls, how much data do you suppose has arrived?
None. For one, the xmitter will be going through the same boot process, for another, any data that arrives at this time will not be important, as we will be waiting a few seconds at boot for the systems to come ready and gain full communications.
With the boards programmed and the XBee's in their default setting, it works perfectly, except it is too slow.
What about with the boards programmed (differently), but the XBees configured to transmit at 115200?
I'm happy to try it. Can you give me any advice on how my code might correctly configure the xbee to 115200? That is what I'm trying to accomplish, and that is where I'm having the issue I'm asking for help with.