OptrisOptrisDocumentation

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

optris::sdk::NetworkConfigReply

What came of DeviceControl::RequestNetworkConfig(): taken or refused, and on whose word.

A refusal by the camera is an answer here, not an exception, because it is an ordinary outcome of asking: the camera checked the values and said no. Everything SetNetworkConfig() throws for, apart from that, this throws for too. Added in 12.0.16.

Public attributes

accepted

bool accepted = false

The configuration was taken. When false, the camera refused it and stored nothing; refusal says why.

camera_reported

bool camera_reported = false

Whether the camera itself stated the verdict and the values below.

True for the Xi 640 ETH over USB on firmware reporting 4200..4399. False for every camera whose firmware does not answer the write with a verdict, and for a request that was not sent at all because it matched what the camera already has (outcome kUnchanged): then accepted is the SDK's word that the write went out or was not needed, and camera_config is the configuration you asked for.

outcome

NetworkConfigOutcome outcome = NetworkConfigOutcome::kUnchanged

What the write did to this connection. Meaningful only when accepted; see NetworkConfigOutcome.

refusal

NetworkConfigRefusal refusal = NetworkConfigRefusal::kNone

Why it was refused, kNone when it was not.

refusal_code

std::uint8_t refusal_code = 0

The camera's own number for the reason, 0 when not refused. Kept beside refusal so a reason newer than this SDK is still reported exactly.

camera_config

DeviceNetworkConfig camera_config

The configuration the camera holds after the request, as it reported it: the new one when accepted, the one it kept when refused. Over USB the address and mask take effect at the camera's next start.