GattCharacteristic.WriteValueWithResultAsync GattCharacteristic.WriteValueWithResultAsync GattCharacteristic.WriteValueWithResultAsync GattCharacteristic.WriteValueWithResultAsync GattCharacteristic.WriteValueWithResultAsync Method

Definition

Overloads

WriteValueWithResultAsync(IBuffer) WriteValueWithResultAsync(IBuffer) WriteValueWithResultAsync(IBuffer) WriteValueWithResultAsync(IBuffer) WriteValueWithResultAsync(IBuffer)

Performs a Characteristic Value write to a Bluetooth LE device.

WriteValueWithResultAsync(IBuffer, GattWriteOption) WriteValueWithResultAsync(IBuffer, GattWriteOption) WriteValueWithResultAsync(IBuffer, GattWriteOption) WriteValueWithResultAsync(IBuffer, GattWriteOption) WriteValueWithResultAsync(IBuffer, GattWriteOption)

Performs a Characteristic Value write to a Bluetooth LE device.

WriteValueWithResultAsync(IBuffer) WriteValueWithResultAsync(IBuffer) WriteValueWithResultAsync(IBuffer) WriteValueWithResultAsync(IBuffer) WriteValueWithResultAsync(IBuffer)

Performs a Characteristic Value write to a Bluetooth LE device.

public : IAsyncOperation<GattWriteResult> WriteValueWithResultAsync(IBuffer value)
IAsyncOperation<GattWriteResult> WriteValueWithResultAsync(IBuffer value) const;
public IAsyncOperation<GattWriteResult> WriteValueWithResultAsync(IBuffer value)
Public Function WriteValueWithResultAsync(value As IBuffer) As IAsyncOperation(Of GattWriteResult)
Windows.Devices.Bluetooth.GenericAttributeProfile.GattCharacteristic.writeValueWithResultAsync(value).done( /* Your success and error handlers */ );

Parameters

value
IBuffer IBuffer IBuffer

A Windows.Storage.Streams.IBuffer object which contains the data to be written to the Bluetooth LE device.

Returns

An asynchronous operation that completes with a GattWriteResult object.

Additional features and requirements

Device family
Windows 10 Creators Update (introduced v10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v4)
Capabilities
bluetooth

WriteValueWithResultAsync(IBuffer, GattWriteOption) WriteValueWithResultAsync(IBuffer, GattWriteOption) WriteValueWithResultAsync(IBuffer, GattWriteOption) WriteValueWithResultAsync(IBuffer, GattWriteOption) WriteValueWithResultAsync(IBuffer, GattWriteOption)

Performs a Characteristic Value write to a Bluetooth LE device.

public : IAsyncOperation<GattWriteResult> WriteValueWithResultAsync(IBuffer value, GattWriteOption writeOption)
IAsyncOperation<GattWriteResult> WriteValueWithResultAsync(IBuffer value, GattWriteOption writeOption) const;
public IAsyncOperation<GattWriteResult> WriteValueWithResultAsync(IBuffer value, GattWriteOption writeOption)
Public Function WriteValueWithResultAsync(value As IBuffer, writeOption As GattWriteOption) As IAsyncOperation(Of GattWriteResult)
Windows.Devices.Bluetooth.GenericAttributeProfile.GattCharacteristic.writeValueWithResultAsync(value, writeOption).done( /* Your success and error handlers */ );

Parameters

value
IBuffer IBuffer IBuffer

A Windows.Storage.Streams.IBuffer object which contains the data to be written to the Bluetooth LE device.

writeOption
GattWriteOption GattWriteOption GattWriteOption

Specifies what type of GATT write should be performed.

Returns

An asynchronous operation that completes with a GattWriteResult object.

Additional features and requirements

Device family
Windows 10 Creators Update (introduced v10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v4)
Capabilities
bluetooth