Get MAC Address

Every Zigbee device has a globally unique eight byte identification number, called the Media Access Controller (MAC) Address, or IEEE Address, or Long Address. This can be used to identify any Zigbee Device. It is similar to an Ethernet MAC Address. It is hard coded into the Module and cannot be changed without erasing the module. This example gets the MAC Address from the module and displays it.



Under the Hood
In the example, the function call: uint8_t* mac = zbGetDeviceInfo(DIP_MAC_ADDRESS); uses the zbGetDeviceInfo method to read the device information property of DIP_MAC_ADDRESS. This same function can be used to access other Device Information Properties too.

Next Example: Get Random

Previous: Get Version

Top: Module_Examples