centralManager(_:didDiscover:withAdvertisementData:rssi:)
Tells the delegate that a peripheral has been discovered during scanning.
Declaration
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.