Hi all, I´m sending some test messages, I need to get IEEE Address in End Device and then use it to get the Short Address, mi code is:
uint8*EDExtAddress;
EDExtAddress = NLME_GetExtAddr();
int dir = ZDP_NwkAddrReq( EDExtAddress, ZDP_ADDR_REQTYPE_SINGLE, 0, 0 );
HalLcdWriteStringValue("ShortA:", dir, 16, HAL_LCD_LINE_1);
when I try to print the Short Address in LCD, this show "0", but when I get the short address using this code::
EDShortAddress = NLME_GetShortAddr();
HalLcdWriteStringValue("ShortA:", EDShortAddress, 16, HAL_LCD_LINE_2);
I can see the correct short address in lcd.
what´s wrong in the first case to get the short address using IEEE addres???