OptrisOptrisDocumentation

Documentation/OTC SDK/Optris.Sdk — C# API referencev12.0

ConnectionStatus

public enum ConnectionStatus

What the link to the camera is doing.

Not the same question as ThermalCamera.IsConnected, which reports only whether a device is open. A camera can be open, enumerated by Windows, listed with status OK in Device Manager, and still not be delivering a single frame: a host that sleeps and resumes leaves a USB stream in exactly that condition. IsConnected answers true throughout. ConnectionStatus.Stalled is how you find out.

Values ascend from least to most established, so code that only wants "is it live" can compare against ConnectionStatus.Connected.

Value
Disconnected 0 No camera is open: never opened, or closed since.
Connecting 1 An open is under way: locating the device, reading its calibration, negotiating a video format.
Connected 2 The camera is open and frames are arriving.
Stalled 3 The camera is open and still present, but no frame has arrived for longer than the connection timeout.
Lost 4 The camera is gone: unplugged, powered down, or otherwise no longer answering. Distinct from ConnectionStatus.Stalled: there is nothing left to wait for.
Failed 5 The camera could not be opened, or the acquisition thread failed. ConnectionStatusChange.Message carries the reason.