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

write

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

Write given data to the provided remote GATT characteristic

Parameters

serviceId - ID of the remote service to write data

characteristicId - ID of the remote characteristic to write data

data - data to write to given GATT Characteristic with

Exceptions

GattServiceNotFoundException - if given remote GATT service was not found

GattCharacteristicException - if given remote GATT Characteristic is not found