Hi,
I am having hard time understanding the use of "addr_id_peer:1" field in the structure ble_gap_addr_t. Could you please help me understand the usage/significance of "addr_id_peer:1". Any suggestion for further reading is appreciated.
Thanks
Hi,
I am having hard time understanding the use of "addr_id_peer:1" field in the structure ble_gap_addr_t. Could you please help me understand the usage/significance of "addr_id_peer:1". Any suggestion for further reading is appreciated.
Thanks
From ble_gap_addr_t docs:
uint8_t ble_gap_addr_t::addr_id_peer |
Only valid for peer addresses.
This bit is set by the SoftDevice to indicate whether the address has been resolved from a Resolvable Private Address (when the peer is using privacy). If set to 1, addr and addr_type refer to the identity address of the resolved address.
This bit is ignored when a variable of type ble_gap_addr_t is used as input to API functions.
The peer manager library, among others, uses this information during the bonding procedure. See also https://devzone.nordicsemi.com/f/nordic-q-a/2084/gap-address-types
From ble_gap_addr_t docs:
uint8_t ble_gap_addr_t::addr_id_peer |
Only valid for peer addresses.
This bit is set by the SoftDevice to indicate whether the address has been resolved from a Resolvable Private Address (when the peer is using privacy). If set to 1, addr and addr_type refer to the identity address of the resolved address.
This bit is ignored when a variable of type ble_gap_addr_t is used as input to API functions.
The peer manager library, among others, uses this information during the bonding procedure. See also https://devzone.nordicsemi.com/f/nordic-q-a/2084/gap-address-types