Hi everyone!
I’m learning how to use my xbees, and I'm trying to send a simple string between 2 arduino megas (each connected to a different computer) via xbees. Everything is working fine, except that my transmitted string keeps getting chopped on the receiving arduino. For instance:
String on transmitting arduino: WHY_DOES_MY_STRING_GET_CUT_OFF_WHENEVER_I_TRY_TO_SEND_THIS_BEAUTIFUL_STRING_USING_XBEES_AND_MY_ARDUINO (the end of the string is marked with a \n)
String on receiving arduino:
WHY_DOES_MY_STRING_GET_CUT_OFF_WHENEVER_I_TRY_TO_SEND_THIS_BEAUTIFUL_STRING_USING_XBEES
Any thoughts on what may be going on?
Update: turns out it was due to memory allocation issues on the variables. Thanks guys!