Hii everybody,
I want to do ble pairing(nrf 52832 development board) with android phone. after searching on nordic devzone how to pair device i found that pairing mechanism can be understood by ble_gls example given in sdk.
so I follow nordic devzone and add the static passkey method in ble_gls example like this
Now, when trying to pair the nrf52832 with android phone using nrf connect app, the first time is working fine and creating no problem. now disconnecting with app and connecting the same device again also create no problem.
when i unpair the device from bluetooth setting in phone and try to rebound(re-pairing) it again with same devices(nrf development board and android phone) or without any changes in code then it seems that the bonding is going on but no proper connection can not be established anymore between android phone and nrf development board and in andriod app a timeout message occur.
Disconnecting with app and connecting the same device with different android phone app again also creates same problem.
I am not able to understand what the problem is going on. can any one tell what is the problem in this code main.c and how to resolve it.