Topic RSS12:31, EET
January 14, 2014
OfflineHi, in my application I would like to control reconnect attempts and I therefore tried to setAutoReconnect(false) and then listen to ServerState changes to control when to call reconnect. However it seems that this switch only disables the reconnect functionality in the Prosys OPC Java client stack and not in the OPC Foundation UA stack which still tries to reconnect.
Is this a bug or feature?
Best Regards,
Roger Eriksson Bjurek
12:44, EET
December 21, 2011
OfflineWell, yes the stack will try to resend packages, but the SDK manages the proper reconnection including channel and session recreation as necessary.
You might like to try also with the new (partly reworked) stack (and SDK) and see if it behaves any better in this situation. It is currently available as public beta.
16:16, EEST
April 3, 2012
OfflineHi,
Hmm.. that should prevent it. At least as long as it is called before the connection break happens. I assume you do this? Otherwise please check that you are not calling UaClient.reconnect() manually somewhere.
How long/what kind of connection break it was? If the break is really short and returns as-if it never was broken that might go undetected as the status is read periodically from the server. See e.g. https://stackoverflow.com/ques…..mmediately.

Log In
Register