AdsAddDeviceNotificationInd

The method AdsAddDeviceNotificationInd should enable sending AdsDeviceNotification. The AdsAddDeviceNotificationRes has to be called for confirming the operation.

Syntax


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

Parameter

rAddr: (type: AmsAddr&) [in] structure with NetId and port number of the responding ADS server.

invokeId: (type: ULONG) [in] handle of the command that is sent. The InvokeId is specified by the source device and is used for the identification of the commands.

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

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

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

Return Value

void