Even after years in the development world and several platforms, I feel like I’ve walked into a cocktail party trying to get a conversation going. My goal project is a controller and robot, but as I’ve done in the past I start with little function prototypes to get acquainted with new ground.
The first level test was to jumper two Mega(s) using Serial3 with two IDE sessions. The sketch in each would if Serial.available would send using Serial3.write and if Serial3.available then serial.print. Basically, had a conversation going between the Mega(s), which is the direction for my main project to use string commands and string results. Now to replace the jumpers with XBee.
Found XBee-API on GitHub that is a version of XBee-Ardunio library modified for Mega boards, but it gets a complier error the sendbyte function.
The setup is XBee Series2 using Sparkfun XBee shield on Mega boards. The coordinator and router are set to API-2.
Any pointers to starting or docs, would be appreciated. I could put up code, but it’s examples from the libraries.
Thanks