AdsAddDeviceNotificationRes

The AdsAddDeviceNotificationRes method enables the sending of an ADS device add notification response. AdsAddDeviceNotificationCon forms the counterpart and is subsequently called.

Syntax

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

AdsAddDeviceNotificationRes 1: Return value

void

Parameter

Name

Type

Description

rAddr

AmsAddr&

[in] Structure with NetId and port number of the responding ADS server.

invokeId

ULONG

[in] Handle of the command, which was sent. The InvokeId is specified by the source device and is used for the identification of the commands.

nResult

ULONG

[in] contains the result of the ADS write command; see AdsStatuscodes.

Handle

ULONG

[in] handle to generated device notification.