Partager via


GattLocalCharacteristic.NotifyValueAsync Méthode

Définition

Surcharges

NotifyValueAsync(IBuffer)

Envoyer et notifie à tous les clients abonnés un GattSubscribedClient d’une valeur.

NotifyValueAsync(IBuffer, GattSubscribedClient)

Envoie et avertit un Client GattSubscribedClient d’une valeur.

NotifyValueAsync(IBuffer)

Envoyer et notifie à tous les clients abonnés un GattSubscribedClient d’une valeur.

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

Paramètres

value
IBuffer

Mémoire tampon qui contient la valeur à envoyer à GattSubscribedClient.

Retours

Opération asynchrone qui se termine par une liste vectorielle de tous les Éléments GattClientNotificationResult pour chaque client abonné.

Attributs

Configuration requise pour Windows

Fonctionnalités de l’application
bluetooth

S’applique à

NotifyValueAsync(IBuffer, GattSubscribedClient)

Envoie et avertit un Client GattSubscribedClient d’une valeur.

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)

Paramètres

value
IBuffer

Mémoire tampon qui contient la valeur à envoyer à GattSubscribedClient.

subscribedClient
GattSubscribedClient

Le client abonné notifie la valeur.

Retours

Opération asynchrone qui se termine avec un objet GattClientNotificationResult.

Attributs

Configuration requise pour Windows

Fonctionnalités de l’application
bluetooth

S’applique à