Hello everyone. I am currently testing out the Digi Xbee Java library and working through the examples. I've been able to send data from the Router xbee (located on pc) to the Coordinator xbee (located on arduino) and succesfully turned on/off an led, this was done in Java. Now I am trying to send a message from the arduino side to the pc side and display the message in my java app. However, I have not had any luck. I'm pretty sure the problem is within my arduino code and if someone could let me know what I am doing wrong I would be grateful.
The following is my Arduino code, It's purpose is just to send out messages.
SoftwareSerial XBee(2, 3); // Arduino RX, TX (XBee Dout, Din)
XBee.print("Hello, can you hear me");
The java files are the examples located in the communication section of the api and the links to them are as follows: