Thank you so much for your reply. I was just getting ready to try to figure it out. I’ve been having issues with my batteries draining, so this will be a tremendous help.
After some trial and error, you need to set pin 23 to LOW before transmitting. At least that’s what I could get to work with the xBee’s I’m using.
digitalWrite(23, LOW); wake up the xBee
// more print statements as desired
digitalWrite(23, HIGH); put the xBee to sleep