AdsDeviceNotificationReq
Die Methode AdsAddDeviceNotificationReq ermöglicht das Senden einer ADS-Geräte-Notification, um ein ADS-Gerät zu informieren. Die AdsDeviceNotificationInd wird auf dem Gegenstück aufgerufen.
Syntax
int AdsDeviceNotificationReq( AmsAddr& rAddr, ULONG invokeId, ULONG cbLength, AdsNotificationStream notifications[] ); Parameter
Name | Typ | Beschreibung |
|---|---|---|
rAddr | AmsAddr& | [in] Struktur mit NetId und Portnummer vom 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. |
nResult | ULONG | [in] enthält das Ergebnis der Geräte-Notification-Anzeige. |
notifications[] | AdsNotificationStream | [in] enthält Informationen der Geräte-Notification(s). |
Rückgabewert