public async Task <GattWriteResult> WriteAsync(byte[] value) { var writer = new DataWriter(); writer.WriteBytes(value); IBuffer buffer = writer.DetachBuffer(); var result = (await Win10Characteristic.WriteValueWithResultAsync(buffer)).ToRXGattWriteResult(); return(result); }