Hello,
This is a followup of an answered question: " How to get pairing/bonding to work in e.g. ble_app_uart".
The project, ble_app_uart_pair is the ble_app_uart example with added the pairing/bonding stuff from the ble_app_gls example. It basically works fine, however there is one situation where it goes wrong.
When there was no bounding and a connection is made, via nRF Toolbox (UART), the smartphone ask whether a pairing is to be made.
If this request is directly annulled (or not answered at all for 10 seconds) access is granted to the device. This should NOT happen when the correct passkey isn't entered!
When this happens, in the RTT log there is the following:
<debug> nrf_ble_lesc: Generating ECC key pair <info> app: BLE_GAP_EVT_AUTH_STATUS: status=0x89 bond=0x0 lv4: 0 kdist_own:0x0 kdist_peer:0x0
I think 0x89 means BLE_GAP_SEC_STATUS_REPEATED_ATTEMPTS.
How can I make the device disconnect in this situation?
Thanks in advance, Sietse
PS. Here the main.c from my project