OptrisOptrisDocumentation

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

ReconnectEvent

class optris_sdk.reconnect.ReconnectEvent

One step of an automatic reconnect, as it happens.

  • Attribute phase — one of the RECONNECT_* constants.
  • Attribute attempt — 1-based attempt number; 0 for RECONNECT_STARTED. For RECONNECT_WAITING_FOR_DEVICE it is the number of attempts made so far -- the wait spends none, so it does not advance while the camera is away.
  • Attribute max_attempts — the configured budget, or 0 when unlimited.
  • Attribute waited_s — how long the SDK waited before this attempt.
  • Attribute message — the failure reason on RECONNECT_ATTEMPT_FAILED and RECONNECT_GAVE_UP, otherwise possibly empty.
  • Attribute serial — which camera this is about. Cached before the first attempt, so it still names the camera after RECONNECT_GAVE_UP, where the camera is closed and the device record reports no serial at all.
  • Attribute model — its marketing name.

ReconnectEvent — properties

phase_name

ReconnectEvent — methods

__repr__()