Skip to content

Reference

OpcClient.ReconnectInterval Property

Gets or sets the time between two attempts to reconnect to a halted session.

Reference

OpcClient.ReconnectInterval Property ​

Type
OpcClient
Namespace
Opc.UaFx.Client
Assembly
Opc.UaFx.Advanced.dll
Package
Opc.UaFx.Advanced v2.59.0
Members
OpcClient Members
Also in
Opc.UaFx.Client

since v2.58

Gets or sets the time between two attempts to reconnect to a halted session.

csharp
public int ReconnectInterval { get; set; }
vbnet
Public Property ReconnectInterval As Integer

Property value

Int32

The time in milliseconds the client waits before each attempt to reconnect. A value equals zero indicates that there is no reconnect attempt performed.

Exceptions

ExceptionCondition
ArgumentOutOfRangeExceptionThe value is less than zero.

Remarks

The default value of this property is DefaultReconnectInterval.

The first attempt is made one interval after the break has been detected. It activates the existing session again. A server that lost the session, for example because it restarted, rejects that, and the attempt then creates a new session. The client keeps attempting until an attempt succeeds, MaxReconnectDuration has elapsed or Disconnect is called.