write

suspend fun <T> L2capChannel.write(value: T, encoder: BleEncoder<T>)

Encode a value and write it to the L2CAP channel.


suspend fun <T> Peripheral.write(characteristic: Characteristic, value: T, encoder: BleEncoder<T>, writeType: WriteType = WriteType.WithResponse)

Encode a value and write it to a characteristic.