ConnectionStatusUpdate in OPC UA client side

Questions regarding the use of the .NET SDK 2.0 for Server or Client development or integration into customer products ...

Moderator: uasdknet

Post Reply
mrahman252003
Sr. Member
Sr. Member
Posts: 13
Joined: 18 Feb 2016, 21:47

ConnectionStatusUpdate in OPC UA client side

Post by mrahman252003 »

I have a problem is that I noticed many times when the OPC UA server is disconnected then in the following code OnConnectionStatusChange is not called.
I expect when connection status has changed for any reason OnConnectionStatusChange (this is our own method) is called. Sometimes it is called OK.

Is there any work around for this?

session = new Session();
session.ConnectionStatusUpdate += OnConnectionStatusChange;
session.Connect(endpoint, RetryInitialConnect.Yes, session.DefaultRequestSettings);

Edit: I was testing with 2 server (1 is connected with mobile network and another is connected with cable network). It looks to me I have often problem with mobile network. It has over 200ms ping time.
Can I change the session somehow to consider longer ping time?

Post Reply