OptrisOptrisDocumentation

Documentation/OTC SDK/optris_sdk — Python API referencev12.0

ReconnectConfig

class optris_sdk.reconnect.ReconnectConfig

How hard, and for how long, the SDK tries to re-open a camera.

None on any of them keeps the SDK's own default.

  • Parameter max_attempts — how many attempts before giving up. 0 or negative keeps trying for as long as the camera handle lives, which is what an unattended installation wants and what an interactive one does not.
  • Parameter initial_delay_s — the wait before the first attempt. Must be above zero -- a zero wait is a retry loop with no wait in it -- and is carried as whole milliseconds, rounded up, because it is a bound.
  • Parameter max_delay_s — the longest wait between attempts, however far the backoff has climbed.
  • Parameter backoff_multiplier — how much longer each attempt waits than the one before. Must be at least 1.0; below that the wait shortens after every failure, which is the opposite of backing off. The SDK refuses it, naming the field.

ReconnectConfig — methods

__repr__()