<!--
{
  "availability" : [
    "iOS: 5.0.0 -",
    "iPadOS: 5.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.7.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreBluetooth",
  "identifier" : "/documentation/CoreBluetooth/CBCentralManagerDelegate/centralManager(_:didFailToConnect:error:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Core Bluetooth"
    ],
    "preciseIdentifier" : "c:objc(pl)CBCentralManagerDelegate(im)centralManager:didFailToConnectPeripheral:error:"
  },
  "title" : "centralManager(_:didFailToConnect:error:)"
}
-->

# centralManager(_:didFailToConnect:error:)

Tells the delegate the central manager failed to create a connection with a peripheral.

```
optional func centralManager(_ central: CBCentralManager, didFailToConnect peripheral: CBPeripheral, error: (any Error)?)
```

## Parameters

`central`

The central manager that provides this information.

`peripheral`

The peripheral that failed to connect.

`error`

The cause of the failure, or `nil` if no error occurred.

## Discussion

The manager invokes this method when a connection initiated with the [`connect(_:options:)`](/documentation/CoreBluetooth/CBCentralManager/connect(_:options:)) method fails to complete. Because connection attempts don’t time out, a failed connection usually indicates a transient issue, in which case you may attempt connecting to the peripheral again.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)