# Call to pd\_getaddress returns ""

**URL:** <https://forums.digi.com/t/call-to-pd-getaddress-returns/10478>\
**Category:** Rabbit\
**Created:** [May 27, 2010, 12:24am UTC](https://forums.digi.com/t/call-to-pd-getaddress-returns/10478 "2010-05-27T00:24:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![blaine](https://avatars.discourse-cdn.com/v4/letter/b/51bf81/32.png) [@blaine](https://forums.digi.com/u/blaine)\
**Post date:** [May 27, 2010, 12:24am UTC](https://forums.digi.com/t/call-to-pd-getaddress-returns/10478/1 "2010-05-27T00:24:03Z")

</div>

I have 20 boards in the field at 15 different locations. I need to retrieve the MAC address of the board at power up or firmware update so that certain variables can be set based on a boards location, ie MAC address.  
I am using the following DC and board

DC 9.62  
BL2600  
RCM3200  
da30f3 - it MAC address  
code :  
unsigned char mac\_buf[6];  
sock\_init();  
\_rk\_pd\_getaddress(0,mac\_buf); // it does not matter if I use this line.  
pd\_getaddress(0,mac\_buf); // or this line as both return “” as shown below

Evaluate Expression  
mac\_buf char \* (0x9D3B) “”

I seem to be missing something fundamental but do not know what it is.  
Any insites would be appreciated.

---

<div class="post-metadata">

**Author:** ![stahta01](https://avatars.discourse-cdn.com/v4/letter/s/5f8ce5/32.png) [@stahta01](https://forums.digi.com/u/stahta01)\
**Post date:** [June 18, 2010, 9:29pm UTC](https://forums.digi.com/t/call-to-pd-getaddress-returns/10478/2 "2010-06-18T21:29:45Z")

</div>

I use SysIDBlock.macAddr to get the MAC value.

[http://www.rabbit.com/documentation/docs/manuals/Rabbit2000/DesignersHandbook/6dblock.htm](http://www.rabbit.com/documentation/docs/manuals/Rabbit2000/DesignersHandbook/6dblock.htm)

Tim S.
