Jaa


GattCharacteristic.ReadValueAsync Method

Definition

Overloads

ReadValueAsync()

Performs a Characteristic Value read from the value cache maintained by Windows.

ReadValueAsync(BluetoothCacheMode)

Performs a Characteristic Value read either from the value cache maintained by Windows, or directly from the device.

ReadValueAsync()

Performs a Characteristic Value read from the value cache maintained by Windows.

public:
 virtual IAsyncOperation<GattReadResult ^> ^ ReadValueAsync() = ReadValueAsync;
/// [Windows.Foundation.Metadata.Overload("ReadValueAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<GattReadResult> ReadValueAsync();
[Windows.Foundation.Metadata.Overload("ReadValueAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<GattReadResult> ReadValueAsync();
function readValueAsync()
Public Function ReadValueAsync () As IAsyncOperation(Of GattReadResult)

Returns

The object required to manage the asynchronous operation, which, upon completion, returns a GattReadResult object, which in turn contains the completion status of the asynchronous operation and, if successful, the data read from the device.

Attributes

Windows requirements

App capabilities
bluetooth

See also

Applies to

ReadValueAsync(BluetoothCacheMode)

Performs a Characteristic Value read either from the value cache maintained by Windows, or directly from the device.

public:
 virtual IAsyncOperation<GattReadResult ^> ^ ReadValueAsync(BluetoothCacheMode cacheMode) = ReadValueAsync;
/// [Windows.Foundation.Metadata.Overload("ReadValueWithCacheModeAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<GattReadResult> ReadValueAsync(BluetoothCacheMode const& cacheMode);
[Windows.Foundation.Metadata.Overload("ReadValueWithCacheModeAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<GattReadResult> ReadValueAsync(BluetoothCacheMode cacheMode);
function readValueAsync(cacheMode)
Public Function ReadValueAsync (cacheMode As BluetoothCacheMode) As IAsyncOperation(Of GattReadResult)

Parameters

cacheMode
BluetoothCacheMode

Specifies whether to read the value directly from the device or from a value cache maintained by Windows.

Returns

The object required to manage the asynchronous operation, which, upon completion, returns a GattReadResult object, which in turn contains the completion status of the asynchronous operation and, if successful, the data read from the device.

Attributes

Windows requirements

App capabilities
bluetooth

See also

Applies to