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

nRF52 How to connect to paired devices?

Hello Nordic Experts,

I am developing the pairing in a central. I am working on nRF52840 DK with nRF5_SDK_15.2.0_9412b96 as the cnetral and I have an iOS app as the peripheral.

When I press a button, I start scanning and looking for a particular UUID. I then connect and discover that and upon BLE_CTAP_EVT_DISCOVERY_COMPLETE, I call pm_conn_secure(p_ctap_evt->conn_handle, false) to initiate pairing. I do receive the pairing message on iPhone. After that, I want to use the pairing information to automatically connect to this iPhone when it is in range. I have no idea how to start and appreciate any help.

I have found pm_address_resolve, but I don't know how to get the IRK of the previously paired devices. Note that my iPhone changes its address frequently. 

Thanks

Parents Reply Children
No Data
Related