Jaa


GattLocalCharacteristic.NotifyValueAsync Method

Definition

Overloads

NotifyValueAsync(IBuffer)

Send and notifies all subscribed clients a GattSubscribedClient of a value.

NotifyValueAsync(IBuffer, GattSubscribedClient)

Sends and notifies a GattSubscribedClient of a value.

NotifyValueAsync(IBuffer)

Send and notifies all subscribed clients a GattSubscribedClient of a value.

public:
 virtual IAsyncOperation<IVectorView<GattClientNotificationResult ^> ^> ^ NotifyValueAsync(IBuffer ^ value) = NotifyValueAsync;
/// [Windows.Foundation.Metadata.Overload("NotifyValueAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<IVectorView<GattClientNotificationResult>> NotifyValueAsync(IBuffer const& value);
[Windows.Foundation.Metadata.Overload("NotifyValueAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<IReadOnlyList<GattClientNotificationResult>> NotifyValueAsync(IBuffer value);
function notifyValueAsync(value)
Public Function NotifyValueAsync (value As IBuffer) As IAsyncOperation(Of IReadOnlyList(Of GattClientNotificationResult))

Parameters

value
IBuffer

The buffer that contains the value to send to the GattSubscribedClient.

Returns

An asynchronous operation that completes with a vector list of all the GattClientNotificationResult for each subscribed client.

Attributes

Windows requirements

App capabilities
bluetooth

Applies to

NotifyValueAsync(IBuffer, GattSubscribedClient)

Sends and notifies a GattSubscribedClient of a value.

public:
 virtual IAsyncOperation<GattClientNotificationResult ^> ^ NotifyValueAsync(IBuffer ^ value, GattSubscribedClient ^ subscribedClient) = NotifyValueAsync;
/// [Windows.Foundation.Metadata.Overload("NotifyValueForSubscribedClientAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<GattClientNotificationResult> NotifyValueAsync(IBuffer const& value, GattSubscribedClient const& subscribedClient);
[Windows.Foundation.Metadata.Overload("NotifyValueForSubscribedClientAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<GattClientNotificationResult> NotifyValueAsync(IBuffer value, GattSubscribedClient subscribedClient);
function notifyValueAsync(value, subscribedClient)
Public Function NotifyValueAsync (value As IBuffer, subscribedClient As GattSubscribedClient) As IAsyncOperation(Of GattClientNotificationResult)

Parameters

value
IBuffer

The buffer that contains the value to send to the GattSubscribedClient.

subscribedClient
GattSubscribedClient

The subscribed client notify the value.

Returns

An asynchronous operation that completes with a GattClientNotificationResult object.

Attributes

Windows requirements

App capabilities
bluetooth

Applies to