Hi, I am porting my project from nrf51822_5.2.0 to nrf51822_6.0.0.
I want to change bond manager to device manager.
I refer to the heart rate service in sdk 6.0.0 and modify my project.
Below is these change: (@ keil C)
-
Remove ble_bondmngr.c and all related include files
-
Add device_manager_peripheral.c and include device_manager.h
-
Copy device_manager_cnfg.h from heart rate service to my project.
-
Remove bond_manager_init(), adding device_manager_init() (copy from heart rate service)
-
disable sec_params_init().
-
adding dm_ble_evt_handler(...) to ble_evt_dispatch(...)
-
Slightly change ble_stack_init(...) -> using ble_enable_params_t & sd_ble_enable(&ble_enable_params);
-
adding device_manager_evt_handler()
For my previous project, some ble characteristic uses BLE_GAP_CONN_SEC_MODE_SET_ENC_NO_MITM(&cccd_md.write_perm); Only bonding can starting notify.
In the nrf51822_6.0.0, when I press bond from MCP, then the link timeout. Any suggestion? Thanks.