ZB GET DEVICE INFO

Device Information Properties (DIPs) indicate the internal functionality of the Module. Most are not valid until the Module is on a Zigbee network. These are listed in module.h and include: The function zbGetDeviceInfo is simply a wrapper for the ZB_GET_DEVICE_INFO command and returns a pointer to the beginning of the returned DIP. The DIPs vary in length; refer to module.h again for length.
 * 1) define DIP_STATE                      0x00
 * 2) define DIP_MAC_ADDRESS                0x01
 * 3) define DIP_SHORT_ADDRESS              0x02
 * 4) define DIP_PARENT_SHORT_ADDRESS       0x03
 * 5) define DIP_PARENT_MAC_ADDRESS         0x04
 * 6) define DIP_CHANNEL                    0x05
 * 7) define DIP_PANID                      0x06
 * 8) define DIP_EXTENDED_PANID             0x07
 * 9) define MAX_DEVICE_INFORMATION_PROPERTY 0x07

Note that as with all communications to/from the Module, the DIPs are sent Least Significant Byte (LSB) first. An example of zbGetDeviceInfo method is in the Get MAC Address example, the received bytes are just printed using the printHexBytes method from utilities.c. In a real application you would store them in a register. You could also convert the MAC to an unsigned 8-byte long long, but since most of the time you're serializing the MAC anyway there's no reason to store it as a long long.