Functions

The following functions are available globally.

  • Undocumented

    Declaration

    Swift

    public func == (lhs: BluetoothError, rhs: BluetoothError) -> Bool
  • Compare two characteristics. Characteristics are the same when their UUIDs are the same.

    Declaration

    Swift

    public func == (lhs: Characteristic, rhs: Characteristic) -> Bool

    Parameters

    lhs

    First characteristic to compare

    rhs

    Second characteristic to compare

    Return Value

    True if both characteristics are the same.

  • Compare two descriptors. Descriptors are the same when their UUIDs are the same.

    Declaration

    Swift

    public func == (lhs: Descriptor, rhs: Descriptor) -> Bool

    Parameters

    lhs

    First descriptor to compare

    rhs

    Second descriptor to compare

    Return Value

    True if both descriptor are the same.

  • Compare two peripherals which are the same when theirs identifiers are equal.

    Declaration

    Swift

    public func == (lhs: Peripheral, rhs: Peripheral) -> Bool

    Parameters

    lhs

    First peripheral to compare

    rhs

    Second peripheral to compare

    Return Value

    True if both peripherals are the same

  • Compare if services are equal. They are if theirs uuids are the same.

    Declaration

    Swift

    public func == (lhs: Service, rhs: Service) -> Bool

    Parameters

    lhs

    First service

    rhs

    Second service

    Return Value

    True if services are the same.