Open ghost opened 4 years ago
Hard to tell without more info. What I have observed is that when I have a subscription without any update then the subscription times out and the client disconnects. My workaround is to subscribe to a node that always changes, e.g. the server time. On a Siemens PLC this is i=2258
.
This is the opc for Go, I have your same problem and fix it using this option when create the client:
c := opcua.NewClient(EndPoint, opcua.SecurityMode(ua.MessageSecurityModeNone), opcua.SessionTimeout(0))
err := c.Connect(ctx))
Setting the SessionTimeout to zero.
Check out #396 - it will disconnect regularly as there is a problem when SecurityMode=MessageSecurityModeNone. I have a fix in a fork + open PR
Hi
I am trying to connect to a opc-ua server using python-opcua. The problem is, the client is getting shut down every now and then without communicating. How can I resolve this?