01/27/2016
....
m_Subscription = new Subscription(session);
m_Subscription.PublishingEnabled = true;
m_Subscription.PublishingInterval = publishingInterval;
m_Subscription.DataChanged += SubscriptionOnDataChanged;
m_Subscription.NewEvents += SubscriptionOnNewEvents;
m_Subscription.StatusChanged += SubscriptionOnStatusChanged;
m_Subscription.Lifetime = 10000;
m_Subscription.MaxKeepAliveTime = 10000;
m_Subscription.Create();
With the above code, I lost subscription time to time meaning SubscriptionOnDataChanged is not called. I was reading the document and that says "The requested Lifetime may be overridden by the Server. Clients must check the CurrentLifetime property after creating or modifying a Subscription to see the value that the Server will actually use."
What does it mean for C# client? Can any body show or explain me?
01/27/2016
I can see with Debugger in the C# client and the subscription method is not called.
I can set value by UAExpert and that works OK, so problem is in my client side. This is not processing lag.
My question how can I use the existing connection and tell server that server should publish data for client.
1 Guest(s)