SDK15, s132 6.0, nRF52832
Hi!
I need to know before connect on the central side (from advertise data), that this piripherial device has already bonded.
Is it possible to check?
SDK15, s132 6.0, nRF52832
Hi!
I need to know before connect on the central side (from advertise data), that this piripherial device has already bonded.
Is it possible to check?
Hi,
Yes, it is possible. Have a look at this post.
Like it is mentioned in the post I referred to, by providing a whitelist to the softdevice, the radio will filter out advertising packets for you automatically. Which means you only will get advertisement packets from devices that you have a already bonded with. So yes, you will know if device is already bonded before connecting. pm_white_set() will set or clear the whitelist and pm_whitelist_get() is for retrieving the previously set whitelist.
Like it is mentioned in the post I referred to, by providing a whitelist to the softdevice, the radio will filter out advertising packets for you automatically. Which means you only will get advertisement packets from devices that you have a already bonded with. So yes, you will know if device is already bonded before connecting. pm_white_set() will set or clear the whitelist and pm_whitelist_get() is for retrieving the previously set whitelist.