StackEventHandler(eventStream: Observable<StackEvent>, gattConnection: GattConnection, votingEnabled: Boolean = true, linkControllerProvider: (GattConnection) -> LinkController = { LinkControllerProvider.INSTANCE.getLinkController(it) })
Receives stack events and dispatches them to the right handler. For now this only supports gattlink buffer events.
eventStream
- The stream emitting stack events
gattConnection
- The connection on which to operate
linkController
- The link controller instance (default)
votingEnabled
- Determines whether we enable voting for fast/slow mode