Hello,
I'm trying to migrate to Peer Manager, but I have a problem. This code returns error BLE_ERROR_INVALID_CONN_HANDLE constantly.
static void on_ble_evt(ble_evt_t * p_ble_evt)
{
...
case BLE_GAP_EVT_CONNECTED:
err_code = pm_conn_secure(p_gap_evt->conn_handle, false);
APP_ERROR_CHECK(err_code);
break;
Device has the Central role. Where is my mistake?
Best Regards,
Pavel