RVS_BTDriverCommunicatorTools

internal protocol RVS_BTDriverCommunicatorTools

This protocol allows aggregated instances to report stuff through the main driver, without breaking the fourth wall.

  • This method will “kick the can” up to the driver, where the error will finally be sent to the delegate. This is required.

    Declaration

    Swift

    func reportThisError(_ error: RVS_BTDriver.Errors)

    Parameters

    error

    The error to be sent to the delegate.

  • sendInterfaceUpdate(_:) Default implementation

    This method will send the driver delegate an update event, on behalf of a interface. This is optional.

    Default Implementation

    The default implementation does nothing.

    Declaration

    Swift

    func sendInterfaceUpdate(_ interface: RVS_BTDriver_InterfaceProtocol)

    Parameters

    interface

    The interface that wants to send an update.

  • sendDeviceUpdate(_:) Default implementation

    This method will send the driver delegate an update event, on behalf of a device. This is optional.

    Default Implementation

    The default implementation does nothing.

    Declaration

    Swift

    func sendDeviceUpdate(_ device: RVS_BTDriver_Device)

    Parameters

    device

    The device that wants to send an update.