ble_store_util_bonded_peers() function
Retrieves the set of peer addresses for which a bond has been established.
Arguments
out_peer_id_addrs
On success, the set of bonded peer addresses gets written here.
out_num_peers
On success, the number of bonds gets written here.
max_peers
The capacity of the destination buffer.
Return value
0 on success; BLE_HS_ENOMEM if the destination buffer is too small; Other nonzero on error.