# How to print xbee's address on arduino uno?

**URL:** <https://forums.digi.com/t/how-to-print-xbees-address-on-arduino-uno/14870>\
**Category:** XBee & XBee Gateway\
**Tags:** arduino-xbee, data, arduino, xbee\
**Created:** [May 21, 2015, 9:33pm UTC](https://forums.digi.com/t/how-to-print-xbees-address-on-arduino-uno/14870 "2015-05-21T21:33:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![yuadie](https://avatars.discourse-cdn.com/v4/letter/y/8c91f0/32.png) [@yuadie](https://forums.digi.com/u/yuadie)\
**Post date:** [May 21, 2015, 9:33pm UTC](https://forums.digi.com/t/how-to-print-xbees-address-on-arduino-uno/14870/1 "2015-05-21T21:33:43Z")

</div>

I am a newbie for use xbee, and i want to build MANET and use xbee for the transmit module. So to transfer sensor’s data from node to server, i don’t know how to print node’s address on arduino’s code so that the other nodes is knowing data from who.  
I set xbee to broadcast mode.  
PAN ID = 1111,  
DL (Destination Low Address) = FFFF  
DH (Destination High Address) = 0

Can u help me? Sorry if my language so bad.

---

<div class="post-metadata">

**Author:** ![maxhawkdown](https://avatars.discourse-cdn.com/v4/letter/m/b77776/32.png) [@maxhawkdown](https://forums.digi.com/u/maxhawkdown)\
**Post date:** [May 21, 2015, 10:14pm UTC](https://forums.digi.com/t/how-to-print-xbees-address-on-arduino-uno/14870/2 "2015-05-21T22:14:56Z")

</div>

#include  
SoftwareSerial XBee(3, 4); // RX, TX  
String xbee\_ir\_data;  
#define XBEE\_BUF\_LEN 70 //maximum payload  
byte xbeeBuf[XBEE\_BUF\_LEN];

void setup()  
{  
// Open serial communications and wait for port to open:  
Serial.begin(9600);  
XBee.begin(9600);  
}

void loop() // run over and over  
{  
if (XBee.available() \> 0){  
for(int i ;i \< XBEE\_BUF\_LEN; i++){  
xbeeBuf[i] = XBee.read();  
delay(10);  
}  
//XBEE\_BUF\_START\_DATA 15 // end 70  
for(int i=15;i \< 70; i++){

```
  Serial.print(xbeeBuf[i],HEX);  
} 
Serial.println();

```

}  
}  
// see xbee address at the third byte \>\>
