adsSyncAddDeviceNotificationReqEx

A notification is defined within an ADS server (e.g. PLC). When a certain event occurs a function (the callback function) is invoked in the ADS client (tread-safe).

An AdsCallbackObject must be created to be able to receive information about the desired events. This must be assigned to a listener that implements the CallbackListenerAdsState interface. The listener is called as soon as the event occurs.

long adsSyncAddDeviceNotificationReqEx (
  long                   lj_port,
  AmsAddr                lj_AmsAddr,
  long                   lj_indexGroup,
  long                   lj_indexOffset,
  AdsNotificationAttrib  lj_pNoteAttrib,
  long                   lj_hUser,
  JNILong                lj_pNotification
);

Parameter

Return value

long: returns the error state of the function.