SubscribableTag

public protocol SubscribableTag

The tag type available for subscribing to notifications.

  • Subscribe to a notification.

    The published event will be received on the queue passed into JacquardManager.init(publishQueue:)

    Declaration

    Swift

    func subscribe<S: NotificationSubscription>(_ subscription: S) -> AnyPublisher<
      S.Notification, Never
    >
  • Subscribe to the data channel for raw data packets.

    The data packet (without sequence number) will be published everytime a packet is received on the RawData characteristic of the tag.

    Declaration

    Swift

    func subscribeRawData() -> AnyPublisher<Data, Never>
  • Subscribe to the data channel for raw bytes.

    The raw bytes will be published everytime they are received on the RawData characteristic of the tag.

    Declaration

    Swift

    func subscribeRawBytes() -> AnyPublisher<[UInt8], Never>
  • Subscribe to the data channel for raw data packets.

    The data packet (including sequence number and ack) will be published everytime a packet is received on the RawData characteristic of the tag.

    Declaration

    Swift

    func subscribeRawDataPacket() -> AnyPublisher<Data, Never>