optris::sdk::NetworkDiscoveryInfo
What a network camera said about itself the last time it answered discovery: the fields DeviceInfo has no place for.
Every Optris network camera answers the discovery broadcast with one record about itself. DeviceInfo carries the part an application opens a camera with; this is the whole record, including what a commissioning tool needs to set the camera's address by broadcast -- its MAC address, whether it can be configured that way at all, and whether it has been told to refuse.
Public attributes
serial
std::string serial
The camera's serial number, as in DeviceInfo::serial.
mac_address
std::string mac_address
The camera's MAC address, "9C:43:1E:70:40:3E": upper case, colon separated. The address ConfigureNetworkByBroadcast() is given.
address
std::string address
The address the camera has now, e.g. "10.0.2.213".
stream_destination
std::string stream_destination
Where the camera sends its stream, as it reported it. A camera that has not been commanded since it started reports its start value here.
stream_port
uint16_t stream_port = 0
The UDP port it sends the stream to.
hardware_revision
uint32_t hardware_revision = 0
as in DeviceInfo
firmware_revision
uint32_t firmware_revision = 0
as in DeviceInfo
protocol_version
uint16_t protocol_version = 0
The version of the discovery record. 1000: the camera answers by unicast and cannot be configured by broadcast. 1001: it answers by broadcast, so it is found from a host in another subnet of the same network segment, and it understands ConfigureNetworkByBroadcast().
answers_by_broadcast
bool answers_by_broadcast = false
The camera answers discovery by broadcast and understands a network setting by broadcast (protocol_version 1001 or later).
accepts_broadcast_config
bool accepts_broadcast_config = false
The camera accepts a network setting by broadcast. False for a camera that cannot take one (answers_by_broadcast false) and for one whose owner has switched it off; such a camera answers ConfigureNetworkByBroadcast() with BroadcastConfigStatus::kRefused.
policy
uint8_t policy = 0
The camera's policy byte as it sent it, for a support case. Bit 0 is accepts_broadcast_config. Zero for a version 1000 camera, which has no policy.
heard_on
std::string heard_on
This host's address on the interface the reply arrived on.
age_ms
uint64_t age_ms = 0
How long ago, in milliseconds, the reply was heard.