LJM Reconnect Configs
LJM automatically attempts to reconnect when connections are discovered to be broken. See the LJME_RECONNECT_FAILED page for further information about reconnection.
Relevant Functions
To read the reconnect configs, use LJM_ReadLibraryConfigS.
To write the reconnect configs, use LJM_WriteLibraryConfigS or LJM_LoadConfigurationFile.
See also: How to deal with LJME_RECONNECT_FAILED.
For more LJM configuration function information, see Library Configuration Functions.
LJM_AUTO_RECONNECT_STICKY_CONNECTION
LJM_AUTO_RECONNECT_STICKY_CONNECTION
is a numerical readable-writable LJM library configuration that sets whether or not LJM attempts to reconnect disrupted / disconnected connections according to same connection type as the original handle. When LJM_AUTO_RECONNECT_STICKY_CONNECTION
is disabled, the ConnectionType
that was used during the initial LJM_Open or LJM_OpenS call will be used to reconnect.
The constant LJM_AUTO_RECONNECT_STICKY_CONNECTION
can be used interchangeably with the string "LJM_AUTO_RECONNECT_STICKY_CONNECTION"
.
Details
0
- false/disabled - Reconnects according to the ConnectionType
parameter that was passed to the Open
call
1
- true/enabled (Default) - Reconnects via the actual connection type that was used to connect to the device
LJM_AUTO_RECONNECT_STICKY_SERIAL
LJM_AUTO_RECONNECT_STICKY_SERIAL
is a numerical readable-writable LJM library configuration that sets whether or not LJM attempts to reconnect disrupted / disconnected connections according to same serial number as the original handle. When LJM_AUTO_RECONNECT_STICKY_SERIAL
is disabled, the Identifier that was used during the initial LJM_Open or LJM_OpenS call will be used to reconnect.
The constant LJM_AUTO_RECONNECT_STICKY_SERIAL
can be used interchangeably with the string "LJM_AUTO_RECONNECT_STICKY_SERIAL"
.
Details
0
- false/disabled
1
- true/enabled (Default)
LJM_AUTO_RECONNECT_WAIT_MS
LJM_AUTO_RECONNECT_WAIT_MS
is a numerical readable-writable LJM library configuration that sets how long in milliseconds LJM waits between attempts to reconnect when a device has been found to be disconnected. The default is 500 milliseconds.
The constant LJM_AUTO_RECONNECT_WAIT_MS
can be used interchangeably with the string "LJM_AUTO_RECONNECT_WAIT_MS"
.