GoldenGateConnectionManager / com.fitbit.goldengate.node / Bridge

Bridge

class Bridge : DataSinkDataSource, Closeable

Establishes a bidirectional transport bridge between cross platform stack and native/android bluetooth services.

Bridge has a TOP of top of DataSink and DataSource that will be used to attach to bottom of cross platform stack

It is expected that before creating any Bridge GoldenGate module is initialized (GoldenGate.init) and Gattlink service and GATT listeners are registered (see GattServerListenerRegistrar)

Note: There should only be one bridge per Node. It is expected that before a bridge is created all initialization is complete and GATT services and its listeners are setup

+-------------------+ | | | GG Stack | | | | Cross Platform | +----|---------^----+ | | | | +----v---+-+---|----+ |TxSink | |RxSource| +--------+ +--------+ | | | Bridge | +----|---------^----+ | | | | | | +----v---+-+---|----+ | Tx | | Rx | +--------+ +--------+ | Gatt Service | | | | Android BT | +-------------------+

Functions

close

fun close(): Unit

getAsDataSinkPointer

fun getAsDataSinkPointer(): Long

getAsDataSourcePointer

fun getAsDataSourcePointer(): Long

start

fun start(): Unit

Starts listening and transmitting data to/from Node.

suspend

fun suspend(): Unit