writeCharacteristic

suspend fun writeCharacteristic(serviceUuid: UUID, characteristicUuid: UUID, value: ByteArray): Boolean

Writes a value to a characteristic on the connected BLE device.

Delegates to BleConnection.writeCharacteristic.

Return

true if the write was successful, false otherwise.

Parameters

serviceUuid

The UUID of the GATT service containing the characteristic.

characteristicUuid

The UUID of the characteristic to write to.

value

The ByteArray value to write.

See also