AdsAddDeviceNotificationInd

The AdsAddDeviceNotificationInd method should enable the sending of AdsDeviceNotification. The AdsAddDeviceNotificationRes must be called to confirm the process.

Syntax

void    AdsAddDeviceNotificationInd( AmsAddr& rAddr, ULONG invokeId, ULONG indexGroup, ULONG indexOffset, AdsNotificationAttrib noteAttrib ); 

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

indexGroup

ULONG

[in] contains the index group number (32-bit, unsigned) of the requested ADS service.

indexOffset

ULONG

[in] contains the index offset number (32-bit, unsigned) of the requested ADS service.

noteAttrib

AdsNotificationAttrib

[in] contains the specification of the notification parameters (cbLength, TransMode, MaxDelay).