GattLocalCharacteristic.NotifyValueAsync 方法

定义

重载

NotifyValueAsync(IBuffer)

向所有订阅的客户端发送并通知一个值的 GattSubscribedClient。

NotifyValueAsync(IBuffer, GattSubscribedClient)

发送并通知 GattSubscribedClient 的值。

NotifyValueAsync(IBuffer)

向所有订阅的客户端发送并通知一个值的 GattSubscribedClient。

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))

参数

value
IBuffer

包含要发送到 GattSubscribedClient 的值的缓冲区。

返回

异步操作,其中包含每个订阅客户端的所有 GattClientNotificationResult 的向量列表。

属性

Windows 要求

应用功能
bluetooth

适用于

NotifyValueAsync(IBuffer, GattSubscribedClient)

发送并通知 GattSubscribedClient 的值。

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)

参数

value
IBuffer

包含要发送到 GattSubscribedClient 的值的缓冲区。

subscribedClient
GattSubscribedClient

订阅的客户端通知值。

返回

使用 GattClientNotificationResult 对象完成的异步操作。

属性

Windows 要求

应用功能
bluetooth

适用于