I read that the DEVICEADDR is always in the advertising packet, so i need to take these data from the master each time that a slave is conected to them. I trying do something like that but i coldn't get what i like, here is part of my code:
//Definition:
ble_gap_addr_t deviceaddr [6];
//In the function on_adv_report:
sd_ble_gap_address_get(deviceaddr); printf("Direccion esclavo 2: %u", deviceaddr);
Maybe i define wrong the variable deviceaddr.
I use nrf51 dk and soft device S130.