ITcAdsServiceCallbacks.AdsNotification

Passes through AdsNotificationEventHandler callback of the associated TcAdsClient.
To subscribe to the AdsNotificationEventHandler the ITcAdsServiceDuplex.SubscribeAdsNotificationEvent method has to be called.

void AdsNotification (
    string netId,
    int port,
    byte [ ] buffer,
    int length,
    int notificationHandle,
    int offset,
    long timeStamp,
    object userData 
);

Parameters

netId

NetID of the AMS Router.

port

Port of the AMS Router.

buffer

Byte array that holds the notification data.

Notice If you use buffered notifications, you will receive only one callback which contains all data.

length

The length of the data in buffer.

notificationHandle

The handle of the connection.

offset

The offset of the data in buffer.

timeStamp

The timestamp when the notification was raised.

userData

This object is passed by to AddDeviceNotification methods and can be used to store data.

See Also

ITcAdsServiceCallbacks Interface | ITcAdsServiceDuplex Interface