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

Bonding only for 10 times?

Hi, I took the ble_hrs_c code and modified it such that it has the NUS service and can connect to 2 peripherals. The code works when I power cycle the central+2peripheral setup for upto 10 times. After every power cycle, I make the bonding information to be erased in central and both peripherals(peer_manager_init(true)). In the 11th time, ble_hrs_c code connects to one of the peripherals(meaning, it goes to BLE_GAP_EVT_CONNECTED but doesn't go to BLE_GAP_EVT_CONN_SEC_UPDATE), but after that, code flow goes to 0xFFFF FFFE. Any thoughts?

Parents Reply Children
No Data
Related