func registerForNotification()

in Sources/RxCBCentral/RxPeripheral.swift [72:86]


    func registerForNotification(service: CBUUID, characteristic: CBUUID, preprocessor: Preprocessor?) -> Completable
    
    /// Receive notification data for a specific GATT Characteristic.
    ///
    /// - parameter characteristic: the CoreBluetooth UUID of the GATT Characteristic you want to receive data for.
    /// - returns: A sequence of `Data`.
    ///
    /// - important:
    /// The data returned will be processed by the `Preprocessor` given when registering
    /// for notifications for this `characteristic`, if one was provided.
    func notificationData(for characteristic: CBUUID) -> Observable<Data>
}

/// Aggregates Data for the purpose of demarcation.
public protocol Preprocessor {