apidocs / com.nimmsta.core.android.bluetooth / DeviceBluetoothService / readCharacteristic

readCharacteristic

fun readCharacteristic(characteristic: BluetoothGattCharacteristic): Task<ByteArray>

Request a read on a given BluetoothGattCharacteristic. The read result is reported asynchronously through the BluetoothGattCallback#onCharacteristicRead(android.bluetooth.BluetoothGatt, android.bluetooth.BluetoothGattCharacteristic, int) callback.

Parameters

characteristic - The characteristic to read from.