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

Get Zigbee Long Address inside of ZB_ZDO_SIGNAL_DEVICE_ANNCE

Hi,
I'm using:
nRF52840 Preview DK
Zigbee v2 (nRF5_SDK_for_Thread_and_Zigbee_2)
Segger Embedded Studio for ARM 3.52
Developing on a MacBook (macOS Mojave v10.14.5)
1) Is there any way to get the long address of a node connecting to the Zigbee network? I can get the short address through ZB_ZDO_SIGNAL_DEVICE_ANNCE in zboss_signal_handler:
    case ZB_ZDO_SIGNAL_DEVICE_ANNCE:
        {
            zb_zdo_signal_device_annce_params_t * dev_annce_params = ZB_ZDO_SIGNAL_GET_PARAMS(&sig, zb_zdo_signal_device_annce_params_t);
            printf("ZB Signal Device Annce, short address: %hx\n", dev_annce_params->device_short_addr);
            
            zigbee_connected_code(dev_annce_params);
}
break;
2) If that's not possible then is there any way to convert the Zigbee short address to the long address?
Thanks,
John
Related