<!--
{
  "availability" : [
    "iOS: 7.0.0 -",
    "iPadOS: 7.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.9.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreBluetooth",
  "identifier" : "/documentation/CoreBluetooth/CBCentralManager/retrieveConnectedPeripherals(withServices:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Core Bluetooth"
    ],
    "preciseIdentifier" : "c:objc(cs)CBCentralManager(im)retrieveConnectedPeripheralsWithServices:"
  },
  "title" : "retrieveConnectedPeripherals(withServices:)"
}
-->

# retrieveConnectedPeripherals(withServices:)

Returns a list of the peripherals connected to the system whose services match a given set of criteria.

```
func retrieveConnectedPeripherals(withServices serviceUUIDs: [CBUUID]) -> [CBPeripheral]
```

## Parameters

`serviceUUIDs`

A list of service UUIDs, represented by [`CBUUID`](/documentation/CoreBluetooth/CBUUID) objects.

## Return Value

A list of the peripherals that are currently connected to the system and that contain any of the services specified in the `serviceUUID` parameter.

## Discussion

The list of connected peripherals can include those that other apps have connected. You need to connect these peripherals locally using the [`connect(_:options:)`](/documentation/CoreBluetooth/CBCentralManager/connect(_:options:)) method before using them.

---

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)