GoldenGateBindings / com.fitbit.goldengate.bindings.io / TxSink

TxSink

class TxSink : NativeReference, Closeable

TxSink is a DataSink for bottom on Golden Gate stack and DataSource for top of Native/Android connection Bridge and is used to transmit data packets from GG stack to connected Node

Constructors

<init>

TxSink()

TxSink is a DataSink for bottom on Golden Gate stack and DataSource for top of Native/Android connection Bridge and is used to transmit data packets from GG stack to connected Node

Properties

dataObservable

val dataObservable: Observable<ByteArray>

Data to be transmitted (over tx characteristics) will be available on this Observable

thisPointer

val thisPointer: Long

Pointer to native jni reference for this object

Functions

close

fun close(): Unit

putData

fun putData(data: ByteArray): Unit

This should only be called from the JNI code and in tests as it is the output from Gattlink to be sent over BLE