OptrisOptrisDocumentation

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

DeviceMonitorOptions

class optris_sdk.discovery.DeviceMonitorOptions

What device_monitor should watch for.

Every field defaults to the SDK's own initialiser, so DeviceMonitorOptions() watches arrivals and removals on USB and nothing else. Pass what differs.

The three durations are seconds here and milliseconds on the wire, rounded and never down to zero from a positive value -- zero means "use the default", so a short interval collapsing to zero would come out far longer than was asked for.

  • Parameter watch_claims — also report DEVICE_CLAIMED and DEVICE_RELEASED. Off by default because it costs a poll: nothing in the operating system pushes a notification when a camera is claimed, so the only way to see the transition is to keep looking.
  • Parameter watch_network — also report cameras on the network. Off by default, and the reason is cost: seeing one means broadcasting a discovery datagram and waiting for replies, and silence takes as long to hear as an answer. Not instant either -- up to one poll interval to appear and two to disappear, because one dropped reply is not a camera leaving -- and discovery is a broadcast, so a camera behind a router stays invisible however healthy it is.
  • Parameter claim_poll_interval_s — how often to look for claim changes. None or 0 uses the SDK's 1 s.
  • Parameter network_poll_interval_s — how often to broadcast. None or 0 uses the SDK's 5 s.
  • Parameter network_discovery_timeout_s — how long one pass may wait for replies. None or 0 uses the SDK's 2 s. Must be comfortably shorter than network_poll_interval_s or the poll never rests.

DeviceMonitorOptions — properties

watch_claims

watch_network

claim_poll_interval_s

network_poll_interval_s

network_discovery_timeout_s

DeviceMonitorOptions — methods

__repr__()