livox_mid360_core
C++ driver library for the Livox Mid-360 LiDAR
Loading...
Searching...
No Matches
livox::mid360::DiscoveryOptions Struct Reference

Parameters of discover(). More...

#include <livox/mid360/session.hpp>

Public Attributes

std::vector< Endpoint > targets
 Unicast targets (ip:port).
std::chrono::milliseconds timeout {1000}
 total time to wait for ACKs
Ipv4 bind_address {0, 0, 0, 0}
 Local address to bind the discovery socket to (selects the interface for broadcast).
std::stop_token stop
 Optional stop token: when a stop is requested the call returns kCancelled within about 100 ms (issue #8: the Device's reconnect thread must be interruptible).
std::optional< DeviceType > device_type
 Keep only the devices of this type (#58); nullopt keeps every answer.

Detailed Description

Parameters of discover().

Member Data Documentation

◆ targets

std::vector<Endpoint> livox::mid360::DiscoveryOptions::targets

Unicast targets (ip:port).

Empty → broadcast to 255.255.255.255:kDiscoveryPort and wait for the whole timeout. With targets, returns as soon as all have answered.

◆ device_type

std::optional<DeviceType> livox::mid360::DiscoveryOptions::device_type

Keep only the devices of this type (#58); nullopt keeps every answer.

A unicast target whose answer is filtered out still counts as answered.


The documentation for this struct was generated from the following file: