write

abstract suspend override fun write(characteristic: Characteristic, data: ByteArray, writeType: WriteType)
abstract suspend override fun write(descriptor: Descriptor, data: ByteArray)

See also

Throws

if invoked without an established connection.

if underlying BluetoothGatt write operation call fails.