writeValue method

Future<void> writeValue({
  1. required String value,
  2. int? writeType,
})

Writes data to a specified characteristic.

value - The string value to be written. writeType - Optional write type, defaulting to BluetoothGattCharacteristic.WRITE_TYPE_DEFAULT.

Implementation

Future<void> writeValue({
  required String value,
  int? writeType,
}) async {
  return CentralPlatformInterface.instance.writeCharacteristic(
    characteristic: this,
    value: value,
    writeType: writeType,
  );
}