write Characteristic
fun writeCharacteristic(peripheral: BluetoothPeripheral, characteristic: BluetoothCharacteristic, data: ByteArray)
Writes data to a Bluetooth characteristic.
Parameters
peripheral
The target device.
characteristic
The characteristic to write to.
data
The data to be written.