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

get the DEVICEADDR from the advertising packet?

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.

Parents Reply Children
No Data
Related