This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Getting device's own MAC address via Zigbee API

Hello,

I am attempting to retrieve a device's own MAC address and print it out. So far I have encountered two different functions that can help me achieve this.  

void zb_osif_get_ieee_eui64(zb_ieee_addr_t ieee_eui64) and void zb_get_long_address(zb_ieee_addr_t addr)
However, I am encountering the issue that when printing using NRF_LOG_INFO(, they do produce 64bits of data. I have attempted to format the data using both %llx, but this only produces 32bits of data, and gives different results for both functions. I have also used PRIx64 from the inttypes.h library to format the output as NRF_LOG_INFO("eui64 address is: %0x" PRIx64, addr), but this does not produce 64bits either.
My question is if there is an effective way of printing out the data, or if there is a particular function call I am missing that could format the address nicely.
Thank you,
Angry Oatmeal
Parents Reply Children
No Data
Related