OptrisOptrisDocumentation

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

optris_sdk_device_network_config

How a camera is addressed on the network.

Initialise with optris_sdk_device_network_config_init().

Public attributes

struct_size

uint32_t struct_size

Set to sizeof(optris_sdk_device_network_config).

port

uint16_t port

The UDP port the camera sends frames to. 50101 from the factory.

The port belongs to the camera, not to your program, so two cameras streaming to one host must not share it.

reserved0

uint16_t reserved0

Reserved; always zero. Named so the struct has no implicit padding.

ip_address

char ip_address[OPTRIS_SDK_MAX_ADDRESS]

The camera's own address, UTF-8, e.g. "10.0.0.21".

subnet_mask

char subnet_mask[OPTRIS_SDK_MAX_ADDRESS]

The mask for that address, e.g. "255.255.248.0".

It has to cover the host the camera streams to. The camera cannot route, so a destination outside this mask never receives a frame -- which is the usual reason a correctly addressed camera is silent.

stream_destination

char stream_destination[OPTRIS_SDK_MAX_ADDRESS]

Where the camera sends its frames -- normally the host running the SDK. This is what the old binding called the gateway. It is not a router and the camera will not route through it.

It must differ from ip_address. The SDK checks that itself and fails the call before writing anything, so the camera never sees a configuration in which the two are equal -- the whole configuration is rejected rather than the one field, and the rejection is ours, not the device's. Do not report it to an operator as the camera refusing the settings; it never saw them.