Skip to content

cvedia::rt::iface::WsDiscovery

Public Functions

Name
virtual ~WsDiscovery() =default
virtual expected< std::vector< std::shared_ptr< OnvifDevice > > > discoverOnvifDevices() =0
virtual expected< std::shared_ptr< iface::OnvifDevice > > deserializeDevice(nlohmann::json const & json) const =0
virtual expected< std::shared_ptr< iface::OnvifDevice > > probeDevice(std::string const & xaddr, std::string const & username ="", std::string const & password ="") =0
Probe an ONVIF device at the given xaddr for credential verification. Creates a temporary device, sets credentials, populates all info.

Public Functions Documentation

function ~WsDiscovery

virtual ~WsDiscovery() =default

function discoverOnvifDevices

virtual expected< std::vector< std::shared_ptr< OnvifDevice > > > discoverOnvifDevices() =0

function deserializeDevice

virtual expected< std::shared_ptr< iface::OnvifDevice > > deserializeDevice(
    nlohmann::json const & json
) const =0

function probeDevice

virtual expected< std::shared_ptr< iface::OnvifDevice > > probeDevice(
    std::string const & xaddr,
    std::string const & username ="",
    std::string const & password =""
) =0

Probe an ONVIF device at the given xaddr for credential verification. Creates a temporary device, sets credentials, populates all info.

Parameters:

  • xaddr ONVIF device service address
  • username Camera username (empty for no auth)
  • password Camera password (empty for no auth)

Return: expected> Device with populated info, or error