---
title: "centralManager(_:didFailToConnectTo:error:)"
framework: Playground Bluetooth
role: symbol
role_heading: Instance Method
platforms: [xcode 10.2+, swift playgrounds 2.0+]
path: playgroundbluetooth/playgroundbluetoothcentralmanagerdelegate/3029480-centralmanager
---

# centralManager(_:didFailToConnectTo:error:)

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

## Declaration

```swift
func centralManager(_ centralManager: PlaygroundBluetoothCentralManager, didFailToConnectTo peripheral: CBPeripheral, error: Error?)
```

## Parameters

- `centralManager`: The central manager that failed to make the new connection.
- `peripheral`: The peripheral that the central manager couldn’t connect to.
- `error`: An error which describes the reason for the connection failure.

## See Also

### Handling Disconnects

- [centralManager(_:didDisconnectFrom:error:)](playgroundbluetooth/playgroundbluetoothcentralmanagerdelegate/3029476-centralmanager.md)
