Topic RSS11:07, EEST
January 26, 2024
OfflineIf our OPC UA client starts without the server is up then the client don’t connect to server.
If server is up when the client starts and for restarts we have used the reconnect funcionality in the SDK.
We would like it to connect automatically when server connects comes online without needing to restart the client app.
What is the best way to achieve that?
Didn’t find something similar to the automatic reconnect feature for that use case.
I am about to do an implementation where on a failed connect we wait a while before trying to connect again.
Need to do it threaded as our app connects to several servers creating a client for each and twe want app to work for the servers that are up.
Is that the way to go or is there something I missed in OPC UA Java SDK that we can use instead?
13:58, EEST
April 3, 2012
OfflineHi,
That is the way to go. The initial connection must be done successfully manually, after that the SDK can take care of the rest. So basically have e.g. a List of UaClients that have not yet succeeded in a .connect and then periodically do .connect for them and once successful remove from the List. Or have separate thread per client to do the same.
It is possible we some day create something in the SDK that would make this easier.
1 Guest(s)

Log In
Register
