func centralManager()

in Sources/RxCBCentral/core/RxCentralDelegate.swift [83:91]


    func centralManager(_ central: CBCentralManager,
                        didDiscover peripheral: CBPeripheral,
                        advertisementData: [String : Any],
                        rssi RSSI: NSNumber) {
        let peripheralType: CBPeripheralType = peripheral
        let advertisements = AdvertisementData(advertisementData)
        didDiscoverPeripheralSubject.onNext((peripheralType, advertisements, RSSI))
        RxCBLogger.sharedInstance.log("Discovered peripheral: \(peripheral.description), RSSI: \(RSSI)")
    }