func peripheral()

in PoC/iOS/Bluetooth Tracing PoC/Sources/Services/CentralService.swift [117:127]


    func peripheral(_ peripheral: CBPeripheral, didDiscoverServices error: Error?) {
        guard error == nil, let service = peripheral.services?.first else {
            Logger.shared.logMessage("P \(peripheral.identifier) did discover services\n")

            centralManager.cancelPeripheralConnection(peripheral)

            return
        }

        peripheral.discoverCharacteristics([characteristicIdentifier.cbuuid], for: service)
    }