CharacteristicIdentifier

public struct CharacteristicIdentifier

A wrapper for CBUUID specific to a characteristic to help distinguish it from a CBUUID of a service.

  • The service this characteristic belongs to.

    Declaration

    Swift

    public let service: ServiceIdentifier
  • The CBUUID of this characteristic.

    Declaration

    Swift

    public let uuid: CBUUID
  • Create a CharacteristicIdentifier using a CBCharacterstic.

    Declaration

    Swift

    public init(_ cbCharacteristic: CBCharacteristic)
  • Returns the essential description of a characteristic.

    Declaration

    Swift

    public var description: String { get }
  • Create a CharacteristicIdentifier using a string and a ServiceIdentifier. Please supply a valid 128-bit UUID, or a valid 16 or 32-bit commonly used UUID.

    Warning

    If the uuid string provided is invalid and cannot be converted to a CBUUID, then there will be a fatal error.

    Declaration

    Swift

    public init(uuid: String, service: ServiceIdentifier)
  • Create a CharacteristicIdentifier using a CBUUID and a ServiceIdentifier.

    Declaration

    Swift

    public init(uuid: CBUUID, service: ServiceIdentifier)
  • Check equality between a CharacteristicIdentifier and a CBCharacterstic.

    Declaration

    Swift

    public static func == (lhs: CharacteristicIdentifier, rhs: CBCharacteristic) -> Bool
  • Check equality between two CharacteristicIdentifiers.

    Declaration

    Swift

    public static func == (lhs: CharacteristicIdentifier, rhs: CharacteristicIdentifier) -> Bool
  • The hash value of the CBUUID.

    Declaration

    Swift

    public var hashValue: Int { get }