Peripheral

class Peripheral : NSObject
  • Captures CoreBluetooth’s did discover services event and pass it to Bluejay’s queue for processing.

    Declaration

    Swift

    public func peripheral(_ peripheral: CBPeripheral, didDiscoverServices error: Error?)
  • Captures CoreBluetooth’s did discover characteristics event and pass it to Bluejay’s queue for processing.

    Declaration

    Swift

    public func peripheral(_ peripheral: CBPeripheral, didDiscoverCharacteristicsFor service: CBService, error: Error?)
  • Captures CoreBluetooth’s did write to charactersitic event and pass it to Bluejay’s queue for processing.

    Declaration

    Swift

    public func peripheral(_ peripheral: CBPeripheral, didWriteValueFor characteristic: CBCharacteristic, error: Error?)
  • Captures CoreBluetooth’s did receive a notification/value from a characteristic event and pass it to Bluejay’s queue for processing.

    Declaration

    Swift

    public func peripheral(_ peripheral: CBPeripheral, didUpdateValueFor characteristic: CBCharacteristic, error: Error?)
  • Captures CoreBluetooth’s did turn on or off notification/listening on a characteristic event and pass it to Bluejay’s queue for processing.

    Declaration

    Swift

    public func peripheral(_ peripheral: CBPeripheral, didUpdateNotificationStateFor characteristic: CBCharacteristic, error: Error?)
  • Captures CoreBluetooth’s did read RSSI event and pass it to Bluejay’s queue for processing.

    Declaration

    Swift

    public func peripheral(_ peripheral: CBPeripheral, didReadRSSI RSSI: NSNumber, error: Error?)
  • Called when the peripheral removed or added services.

    Declaration

    Swift

    public func peripheral(_ peripheral: CBPeripheral, didModifyServices invalidatedServices: [CBService])