The base station (receiver) will receive both node A's and node B's data, although it will be confused which data is from node A or node B.
Why?
There are several solutions for this.
One, using AT mode, is to send "A:xxxxxxxxxxxxx" from one node and "B:xxxxxxxxxxxxx" from the other node.
The other is to use API mode, where each packet sent contains the address of the source and the address of the destination. Andrew Rapp's XBee library makes sending and receiving in API mode easy.
shogunato3:
Are there any method that I can use using the zigbee module that I have?
Certainly there are, although I have no idea what they might be. The three-page "hardware manual" is only a high level overview; I see no detailed documentation.
Problem is the received data is in char. I somehow cant find to convert char to string. To be able to remove the A and B, it needs to be in String. Any idea on this? Ive searched the google, cant find one.