write
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.