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

read

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

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

Exceptions

GattServiceNotFoundException - if given remote GATT service was not found

GattCharacteristicException - if given remote GATT Characteristic is not found

Return
Data read from given GATT Characteristic