readCharacteristic

suspend fun readCharacteristic(serviceUuid: UUID, characteristicUuid: UUID): ByteArray?

Reads the value of a characteristic from the connected BLE device.

Delegates to BleConnection.readCharacteristic.

Return

The characteristic value as a ByteArray if successful, or null on failure.

Parameters

serviceUuid

The UUID of the GATT service containing the characteristic.

characteristicUuid

The UUID of the characteristic to read.

See also