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

# centralManager(_:didDiscover:withAdvertisementData:rssi:)

Tells the delegate that a peripheral has been discovered during scanning.

## Declaration

```swift
func centralManager(_ centralManager: PlaygroundBluetoothCentralManager, didDiscover peripheral: CBPeripheral, withAdvertisementData advertisementData: [String : Any]?, rssi: Double)
```

## Parameters

- `centralManager`: The central manager providing this information.
- `peripheral`: The newly discovered peripheral.
- `advertisementData`: A dictionary containing any advertisement data that the peripheral provides.
- `rssi`: The current received signal strength indicator of the peripheral in decibels.

## See Also

### Discovering Peripherals

- [centralManager(_:willConnectTo:)](playgroundbluetooth/playgroundbluetoothcentralmanagerdelegate/3029482-centralmanager.md)
- [centralManager(_:didConnectTo:)](playgroundbluetooth/playgroundbluetoothcentralmanagerdelegate/3029474-centralmanager.md)
