adsAmsRegisterRouterNotification
The AdsAmsRegisterNotificationReq()function can be used to detect a change in the status of the TwinCAT router. The given callback function is invoked each time the state changes. The AdsAmsUnRegisterNotification() function ends the status monitoring of the router again.
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 CallbackListenerAdsRouter interface. The listener is called as soon as the event occurs.
long adsAmsRegisterRouterNotification ();
Parameter
Return value
long: returns the error state of the function.