Hi,
Using the gls example, as soon as I try to connect to it using NRF Connect on my iPhone, I get the "Failed to secure connection. Disconnecting." error. Once the error starts, it keeps loops forever like below:
app: Glucose example started. app: Fast advertising app: Connected app: Failed to secure connection. Disconnecting. app: Fast advertising app: Disconnected app: Connected app: Start encryption app: Failed to secure connection. Disconnecting. app: Fast advertising app: Disconnected app: Connected app: Failed to secure connection. Disconnecting. app: Fast advertising app: Disconnected app: Connected app: Failed to secure connection. Disconnecting. app: Fast advertising app: Disconnected app: Connected app: Failed to secure connection. Disconnecting. app: Fast advertising app: Disconnected app: Connected app: Start encryption app: Failed to secure connection. Disconnecting. app: Fast advertising app: Disconnected
It seem like I am getting the "PM_EVT_CONN_SEC_FAILED" event before the Security Request timer is timed out, i.e. before encryption begins.
Before I had these errors, the pairing code was able to work once. But, since I the errors begin to happen as soon as I deleted the bond (by pressing Key#2 while restarting the firmware).
I tried erase the flash, and reload the firmware, but no difference, the error still happens.
Any idea on how I can get this pairing code to work again will be greatly appreciated.
Thanks,
Joseph