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?
ConnectionStatusUpdate in OPC UA client side
Moderator: uasdknet
-
- Sr. Member
- Posts: 13
- Joined: 18 Feb 2016, 21:47