Note that the XBee modules have two different API modes. ATAP=1
is the standard mode and ATAP=2
is an escaped mode.
You need to make sure that the code library you're using is configured to match the mode you've programmed on the XBee module.
In the case of python-xbee, you need to add escaped=True
to your constructor. The Java library probably has something similar.
But, in my opinion there's no benefit to using escaped API mode. I recommend just setting ATAP=1
on the modules instead of trying to configure the libraries for escaped mode.