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

Can't erase BLE bond

Hi, 

I was trying to create bond between my Android app and the device. At the beginning it worked well, and later I erased the board to start over. But then my app would connect and immediately disconnect with a status code of 22, meaning the device has already bonded, and I confirmed the bonded state by calling device.getBondState() in Android. No matter how I erased the board again and again, it always shows that the device has already been bonded, so I can't connect to my app. But interestingly, it can connect to nRF Connect. I tried pm_peers_delete() and pm_whitelist_set(NULL, 0) multiple times, and they both doesn't work. Can anyone figure out what happened? Thanks! \

By the way, for some reason, my PCB can't configure a logger so I can't print messages. 

Related