To retrieve random address generated via GAPM_GEN_NON_RSLV_ADDR

2 posts / 0 new
Last post
hardy.chen
Offline
Last seen:1 year 10 months ago
加入:2015-03-13 04:20
To retrieve random address generated via GAPM_GEN_NON_RSLV_ADDR

Hi,

Is there any way to retrieve the generated random address after passing command 'gapm_start_advertise_cmd' with 'op.addr_src' set to GAPM_GEN_NON_RSLV_ADDR?
Since this command will generate new random one in every trial, I would like to keep the same one for certain duration in my case.

I'm using SDK DA14580_BEACON_3.40.6.

Thanks

Device:
MT_dialog
Offline
Last seen:2 months 6 days ago
工作人员
加入:2015-06-08 11:34
Hi hardy.chen,

Hi hardy.chen,

You can use the gapm_get_dev_info_cmd with the GAPM_GET_DEV_BDADDR operation, this should return your local and your random address, you can pick between those two addreses by the addr_type of the gap_bdaddr sturct that the GAPM_DEV_BDADDR_IND will return.

Thanks MT_dialog

Topic locked