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

GattCharacteristicReader

class GattCharacteristicReader

Write to remote GATT Characteristic

Parameters

gattConnection - GattConnection for the remote peripheral to write to

Constructors

<init>

GattCharacteristicReader(gattConnection: GattConnection, readTransactionProvider: ReadGattCharacteristicTransactionProvider = ReadGattCharacteristicTransactionProvider(), gattClientConnectionStateSetter: GattClientConnectionStateSetter = GattClientConnectionStateSetter(), scheduler: Scheduler = ReadWriteCharacteristicProvider.scheduler)

Write to remote GATT Characteristic

Functions

read

fun read(serviceId: UUID, characteristicId: UUID): Single<ByteArray>

Write given data to the provided remote GATT characteristic