ReconnectEvent
class optris_sdk.reconnect.ReconnectEvent
One step of an automatic reconnect, as it happens.
- Attribute
phase— one of theRECONNECT_*constants. - Attribute
attempt— 1-based attempt number; 0 forRECONNECT_STARTED. ForRECONNECT_WAITING_FOR_DEVICEit 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 onRECONNECT_ATTEMPT_FAILEDandRECONNECT_GAVE_UP, otherwise possibly empty. - Attribute
serial— which camera this is about. Cached before the first attempt, so it still names the camera afterRECONNECT_GAVE_UP, where the camera is closed and the device record reports no serial at all. - Attribute
model— its marketing name.