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

# centralManager(_:didConnectTo:)

Tells the delegate that the central manager established a connection with a peripheral.

## Declaration

```swift
func centralManager(_ centralManager: PlaygroundBluetoothCentralManager, didConnectTo peripheral: CBPeripheral)
```

## Parameters

- `centralManager`: The central manager that made the new connection.
- `peripheral`: The newly connected peripheral.

## See Also

### Discovering Peripherals

- [centralManager(_:didDiscover:withAdvertisementData:rssi:)](playgroundbluetooth/playgroundbluetoothcentralmanagerdelegate/3029478-centralmanager.md)
- [centralManager(_:willConnectTo:)](playgroundbluetooth/playgroundbluetoothcentralmanagerdelegate/3029482-centralmanager.md)
