OptrisOptrisDocumentation

Documentation/OTC SDK/OTC SDK — C++ API referencev12.0

optris::sdk::BroadcastNetworkConfig

A network setting for the camera with a given MAC address, sent by broadcast.

Public attributes

mac_address

std::string mac_address

Which camera: its MAC address, "9C:43:1E:70:40:3E", "9c-43-1e-70-40-3e" or "9C431E70403E". Every camera on the segment hears the request and only this one acts on it.

ip_address

std::string ip_address

The camera's new address, e.g. "10.0.2.213".

subnet_mask

std::string subnet_mask

The mask for it, e.g. "255.255.240.0".

gateway

std::string gateway

The gateway. Empty or "0.0.0.0" for none, which is what a camera needs on a network where it only talks to hosts on its own subnet.

immediately

bool immediately = false

Apply the new address at once rather than at the camera's next start. The camera answers first and switches after, so the answer still arrives. The default, false, is the recommended one: the camera stores the setting and keeps its present address until it restarts.

timeout

std::chrono::milliseconds timeout {3000}

How long to wait for the camera's answer, in all.

attempts

uint32_t attempts = 3

How many times to send the request within timeout while no answer has come. The camera may apply a repeat again and answer again, so repeating is safe; it is what recovers a lost request or answer.