AdsAddDeviceNotificationCon

Die Methode AdsAddDeviceNotificationCon bestätigt eine ADS-Gerät-Hinzufügen-Notification-Anforderung. AdsAddDeviceNotificationReq bildet das Gegenstück und muss zuvor aufgerufen werden.

Syntax

void AdsAddDeviceNotificationCon( AmsAddr& rAddr, ULONG invokeId, ULONG nResult, ULONG handle ); 

AdsAddDeviceNotificationCon 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.

nResult

ULONG

[in] enthält das Ergebnis des ADS-Schreibbefehls, siehe AdsStatuscodes.

Handle

ULONG

[in] Handle auf generierte Geräte-Notification.