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

Pairing devices S130

Hi,

How could i implement Just work pairing method in my "ble central and peripheral" example. I modified project to suit my need, and everything works fine, untill i try to write to peripheral. I figured out i need to set pairing method "just work". Is there any easy way to implement this method?

Parents
  • @nejcokle: I'm sorry I was confused with the ble_app_multilink_central and ble_app_multilink_peripheral where we use the device manager. But the principle is the same, you need to call sd_ble_gap_authenticate() to trigger bonding. And if you want to rebond later on you need to store the ble_gap_sec_kdist_t that you got after the bonding has finished ( BLE_GAP_EVT_AUTH_STATUS event).

    We have an example for S130 that use device manager here.

Reply
  • @nejcokle: I'm sorry I was confused with the ble_app_multilink_central and ble_app_multilink_peripheral where we use the device manager. But the principle is the same, you need to call sd_ble_gap_authenticate() to trigger bonding. And if you want to rebond later on you need to store the ble_gap_sec_kdist_t that you got after the bonding has finished ( BLE_GAP_EVT_AUTH_STATUS event).

    We have an example for S130 that use device manager here.

Children
No Data
Related