sample code that XBEE arduino can do send and receive data?

Good day everyone....
I'm new to this kind of device and still confused in terms on programming the XBee in arduino....
As the title state that can someone give me a simple sample code that XBEE arduino can do send and receive data?

Most I researched is that only one Xbee is sending, and the another one is receiving..
So, what I want to know that, those two Xbee can do sending and receiving data. Its like chatting each other.
If this problem already solved. can someone post the link?

Thanks!!! :slight_smile:

and still confused in terms on programming the XBee

Perhaps because you can't. You can configure the XBee and you can program the Arduino. Only digi.com can program the XBee.

As the title state that can someone give me a simple sample code that XBEE arduino can do send and receive data?

Not without knowing which XBees you have, how they are configured, how they are connected to the Arduinos, and what you want to send and receive.

So, what I want to know that, those two Xbee can do sending and receiving data.

Yes, they can.