Documentation ¶
Index ¶
- func BuildProbeMessage(uuidV4 string, scopes, types []string, nmsp map[string]string) gosoap.SoapMessage
- func DevicesFromProbeResponses(probeResponses []string) ([]onvif.Device, error)
- func GetAvailableDevicesAtSpecificEthernetInterface(interfaceName string) ([]onvif.Device, error)
- func SendProbe(interfaceName string, scopes, types []string, namespaces map[string]string) ([]string, error)
- func SendUDPMulticast(msg string, interfaceName string) ([]string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildProbeMessage ¶
func BuildProbeMessage(uuidV4 string, scopes, types []string, nmsp map[string]string) gosoap.SoapMessage
BuildProbeMessage generates a SOAP ws-discovery Probe message
Example Message:
<?xml version="1.0" encoding="UTF-8"?> <soap-env:Envelope xmlns:soap-env="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:d="http://schemas.xmlsoap.org/ws/2005/04/discovery" xmlns:dn="http://www.onvif.org/ver10/network/wsdl" xmlns:soap-enc="http://www.w3.org/2003/05/soap-encoding"> <soap-env:Header> <a:Action mustUnderstand="1">http://schemas.xmlsoap.org/ws/2005/04/discovery/Probe</a:Action> <a:MessageID>uuid:a277f13a-ecae-4492-9d6a-218982122d1c</a:MessageID> <a:To mustUnderstand="1">urn:schemas-xmlsoap-org:ws:2005:04:discovery</a:To> </soap-env:Header> <soap-env:Body> <d:Probe> <d:Types>dn:NetworkVideoTransmitter</d:Types> </d:Probe> </soap-env:Body> </soap-env:Envelope>
func GetAvailableDevicesAtSpecificEthernetInterface ¶
GetAvailableDevicesAtSpecificEthernetInterface sends a ws-discovery Probe Message via UDP multicast to Discover NVT type Devices
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.