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 | +-------------------+
fun close(): Unit |
|
fun getAsDataSinkPointer(): Long |
|
fun getAsDataSourcePointer(): Long |
|
fun start(): Unit
Starts listening and transmitting data to/from Node. |
|
fun suspend(): Unit |