<!--
{
  "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(_:didConnect:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Core Bluetooth"
    ],
    "preciseIdentifier" : "c:objc(pl)CBCentralManagerDelegate(im)centralManager:didConnectPeripheral:"
  },
  "title" : "centralManager(_:didConnect:)"
}
-->

# centralManager(_:didConnect:)

Tells the delegate that the central manager connected to a peripheral.

```
optional func centralManager(_ central: CBCentralManager, didConnect peripheral: CBPeripheral)
```

## Parameters

`central`

The central manager that provides this information.

`peripheral`

The now-connected peripheral.

## Discussion

The manager invokes this method when a call to [`connect(_:options:)`](/documentation/CoreBluetooth/CBCentralManager/connect(_:options:)) succeeds. You typically implement this method to set the peripheral’s delegate and discover its services.

For more information, see [Core Bluetooth Programming Guide](https://developer.apple.com/library/archive/documentation/NetworkingInternetWeb/Conceptual/CoreBluetooth_concepts/AboutCoreBluetooth/Introduction.html#//apple_ref/doc/uid/TP40013257).

---

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)