RVS_BTDriver_Base_Interface

internal class RVS_BTDriver_Base_Interface : NSObject, RVS_BTDriver_InterfaceProtocol

This is the base class for our transport abstractions.

  • A weak reference to the main driver instance.

    Declaration

    Swift

    internal weak var driver: RVS_BTDriver!
  • This flag tells the driver to maintain a persistent connection (until explicitly disconneted).

    Otherwise, connections are made and canceled for each transaction.

    Default is false.

    Declaration

    Swift

    internal var persistentConnection: Bool
  • A list of the vendors that are users of this interface.

    Declaration

    Swift

    internal var vendors: [RVS_BTDriver_VendorProtocol]
  • This flag tells the driver to “remember” devices that it discovers in a scan.

    This means that when a device is “rediscovered,” we don’t get another discovery event.

    If true (default), then we only get one discovery event per device. If false, we keep getting discovery events.

    This can be useful for “rediscovering” devices that we remove from our list (set to false for that).

    Declaration

    Swift

    internal var rememberAdvertisedDevices: Bool
  • You cannot use the base class version of this. This is just here to satisfy the protocol.

    Declaration

    Swift

    internal var isBTAvailable: Bool { get }
  • You cannot use the base class version of this. This is just here to satisfy the protocol.

    Declaration

    Swift

    internal var isScanning: Bool { get set }