OptrisOptrisDocumentation

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

optris_sdk_network_config_reply

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

Initialise with optris_sdk_network_config_reply_init(). Added in 12.0.16.

Public attributes

struct_size

uint32_t struct_size

Set to sizeof(optris_sdk_network_config_reply).

accepted

int32_t accepted

Non-zero when the configuration was taken. Zero when the camera refused it and stored nothing; refusal says why.

camera_reported

int32_t camera_reported

Non-zero when the camera itself stated the verdict and camera_config. Zero for a camera whose firmware states none, and for a request not sent because it matched what the camera already has (outcome OPTRIS_SDK_NETWORK_UNCHANGED): camera_config is then the configuration you passed.

outcome

optris_sdk_network_apply_result outcome

What the write did to this connection; one of the optris_sdk_network_apply_result values. Meaningful only when accepted is non-zero.

refusal

optris_sdk_network_refusal refusal

One of the optris_sdk_network_refusal values; OPTRIS_SDK_NETWORK_REFUSAL_NONE when not refused.

refusal_code

uint32_t refusal_code

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

camera_config

optris_sdk_device_network_config 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.