I have an XBee ZigBee device connected to an Android phone via a BLE gateway (the XBee and BLE gateway are connected with UART). The BLE gateway acts transparently: any XBee message received is transmitted over the gateway to the Android phone and any BLE message received on the gateway is transmitted to the XBee. To facilitate communication with my XBee device, I would like to use the XBee Java Library within an app on the Android phone. Can this be done? In particular:
1.) Will the library compile on an Android phone?
2.) Can the serial communication interface within the library be replaced by a BLE communication interface? If so, what is the right way to do so?
Thanks in advance for the help!