![Avatar](https://opcfoundation.org/wp-content/uploads/sp-resources/forum-avatars/defaults/userdefault.png)
01/27/2016
![sp_UserOfflineSmall](https://opcfoundation.org/wp-content/sp-resources/forum-themes/reboot/images/darkpack/sp_UserOfflineSmall.png)
....
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?
![Avatar](https://opcfoundation.org/wp-content/uploads/sp-resources/forum-avatars/defaults/userdefault.png)
01/27/2016
![sp_UserOfflineSmall](https://opcfoundation.org/wp-content/sp-resources/forum-themes/reboot/images/darkpack/sp_UserOfflineSmall.png)
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)