AdsDeviceNotificationInd

Die Methode AdsDeviceNotificationInd ermöglicht den Empfang von einer ADS-Geräte-Notification-Anzeige. Das empfangende Modul muss diese Methode bereitstellen. Der Empfang wird nicht quittiert.
Die AdsDeviceNotificationCon muss auf Seite der AdsDeviceNotificationReq aufgerufen werden um die Übermittlung zu überprüfen.

Syntax

void AdsDeviceNotificationInd( AmsAddr& rAddr, ULONG invokeId, ULONG cbLength, 
AdsNotificationStream* pNotifications );

AdsDeviceNotificationInd 1: Rückgabewert

void

Parameter

Name

Typ

Beschreibung

rAddr

AmsAddr&

[in] Struktur mit NetId und Portnummer vom antwortenden ADS-Server.

invokeId

ULONG

[in] Handle des Befehls, der gesendet wird. Die InvokeId wird vom Quellgerät spezifiziert und wird für die Identifizierung der Befehle herangezogen.

cbLength

ULONG

[in] enthält die Länge von pNotifications.

pNotifications

AdsNotificationStream*

[in] Zeiger auf die Notifications. Dieses Array besteht aus AdsStampHeader mit Notification Handle und Daten via AdsNotificationSample.