Gatt​Reliable​Write​Transaction Gatt​Reliable​Write​Transaction Gatt​Reliable​Write​Transaction Class

Definition

Performs GATT reliable writes on the Bluetooth LE device, in the form of a transaction write operation.

public sealed class GattReliableWriteTransaction : IGattReliableWriteTransaction, IGattReliableWriteTransaction2public sealed class GattReliableWriteTransaction : IGattReliableWriteTransaction, IGattReliableWriteTransaction2Public NotInheritable Class GattReliableWriteTransaction Implements IGattReliableWriteTransaction, IGattReliableWriteTransaction2
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Constructors

GattReliableWriteTransaction() GattReliableWriteTransaction() GattReliableWriteTransaction()

Creates a new GattReliableWriteTransaction object.

public GattReliableWriteTransaction()public GattReliableWriteTransaction()Public Sub New()
Attributes

Methods

CommitAsync() CommitAsync() CommitAsync()

Performs all the queued writes, in sequence, writing the data to the device. Once a transaction object has been committed, no further operations are possible on the GattReliableWriteTransaction object.

public IAsyncOperation<GattCommunicationStatus> CommitAsync()public IAsyncOperation<GattCommunicationStatus> CommitAsync()Public Function CommitAsync() As IAsyncOperation( Of GattCommunicationStatus )
Returns

The object used to manage the asynchronous operation, which, upon completion, will return the status of the asynchronous operation.

Attributes

CommitWithResultAsync() CommitWithResultAsync() CommitWithResultAsync()

Performs all the queued writes, in sequence, writing the data to the device. Once a transaction object has been committed, no further operations are possible on the GattReliableWriteTransaction object.

public IAsyncOperation<GattWriteResult> CommitWithResultAsync()public IAsyncOperation<GattWriteResult> CommitWithResultAsync()Public Function CommitWithResultAsync() As IAsyncOperation( Of GattWriteResult )
Returns

An asynchronous operation that completes with a GattWriteResult object.

Attributes
Additional features and requirements
Device family
Windows 10 Creators Update (introduced v10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v4)

WriteValue(GattCharacteristic, IBuffer) WriteValue(GattCharacteristic, IBuffer) WriteValue(GattCharacteristic, IBuffer)

Adds a new write operation to the transaction object.

public void WriteValue(GattCharacteristic characteristic, IBuffer value)public void WriteValue(GattCharacteristic characteristic, IBuffer value)Public Function WriteValue(characteristic As GattCharacteristic, value As IBuffer) As void
Parameters
characteristic
GattCharacteristic GattCharacteristic GattCharacteristic

The GattCharacteristic object on which to perform the write operation.

value
IBuffer IBuffer IBuffer

The Characteristic Value to be written to characteristic.

Attributes