The pm_evt_handler routine handles the event PM_EVT_CONN_SEC_FAILED and lists the following text as comments:
case PM_EVT_CONN_SEC_FAILED:
{
/* Often, when securing fails, it shouldn't be restarted, for security reasons.
* Other times, it can be restarted directly.
* Sometimes it can be restarted, but only after changing some Security Parameters.
* Sometimes, it cannot be restarted until the link is disconnected and reconnected.
* Sometimes it is impossible, to secure the link, or the peer device does not support it.
* How to handle this error is highly application dependent. */
break;
}
I would like to know the sample scenarios when securing can be started, restarted, shouldn't be restarted and impossible to secure the link. Basically I am looking for example situations for "Sometimes" in the text above. I am not too familiar with security aspect of BLE. Any recommendations would be helpful.