OptrisOptrisDocumentation

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

BroadcastNetworkConfig

pub struct BroadcastNetworkConfig

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

Examples

let config = optris_sdk::BroadcastNetworkConfig::new("9C:43:1E:70:40:3E", "10.0.2.213", "255.255.240.0")
    .gateway("0.0.0.0")
    .attempts(3);

BroadcastNetworkConfig — methods

pub fn new(mac_address: &str, ip_address: &str, subnet_mask: &str) -> Self

Which camera, its new address and the mask for it. No gateway, effective at the camera's next start, a 3 s timeout and 3 attempts.

pub fn gateway(mut self, gateway: &str) -> Self

The gateway; empty or 0.0.0.0 for none.

pub fn immediately(mut self, immediately: bool) -> Self

Apply the new address at once rather than at the camera's next start. Off by default, which is the recommended setting.

pub fn timeout(mut self, timeout: Duration) -> Self

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

pub fn attempts(mut self, attempts: u32) -> Self

How many times to send the request within the timeout while no answer has come. Repeating is safe: the camera applies a repeat again and answers again.