RxFitbitGatt / com.fitbit.bluetooth.fbgatt.rx.client / GattCharacteristicWriter

GattCharacteristicWriter

class GattCharacteristicWriter

Write to remote GATT Characteristic

Parameters

gattConnection - GattConnection for the remote peripheral to write to

Constructors

<init>

GattCharacteristicWriter(gattConnection: GattConnection, writeTransactionProvider: WriteGattCharacteristicTransactionProvider = WriteGattCharacteristicTransactionProvider(), gattClientConnectionStateSetter: GattClientConnectionStateSetter = GattClientConnectionStateSetter(), scheduler: Scheduler = ReadWriteCharacteristicProvider.scheduler, readWriteLock: Semaphore = ReadWriteCharacteristicLock.lock)

Write to remote GATT Characteristic

Functions

write

fun write(serviceId: UUID, characteristicId: UUID, data: ByteArray): Completable

Write given data to the provided remote GATT characteristic

Companion Object Properties

slowLoggingEnabled

var slowLoggingEnabled: Boolean

Set this to true in order to turn on verbose logging that may impact gatt write throughput