Hi,
I'm trying to connect my phone ober BLE with the nrf52840. The first x attemps always work (connect, disconnect, connect, disconnect, ...) but after some time no further connection can be established. I walked through the code and found that the function "sm_link_secure" called from the function "pm_conn_secure" returns with the error code 0x08:
ret_code_t pm_conn_secure(uint16_t conn_handle, bool force_repairing)
{
VERIFY_MODULE_INITIALIZED();
ret_code_t err_code;
err_code = sm_link_secure(conn_handle, force_repairing);
if (err_code == NRF_ERROR_INVALID_STATE)
{
err_code = NRF_ERROR_BUSY;
}
return err_code;
}
When I restart the phone everything works again as expected. Do you have any idea how to escape from this?
Thanks and best regards!