wsdiscovery

package
v0.0.15 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 20, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildProbeMessage added in v0.0.13

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 DevicesFromProbeResponses added in v0.0.13

func DevicesFromProbeResponses(probeResponses []string) ([]onvif.Device, error)

func GetAvailableDevicesAtSpecificEthernetInterface added in v0.0.13

func GetAvailableDevicesAtSpecificEthernetInterface(interfaceName string) ([]onvif.Device, error)

GetAvailableDevicesAtSpecificEthernetInterface sends a ws-discovery Probe Message via UDP multicast to Discover NVT type Devices

func SendProbe

func SendProbe(interfaceName string, scopes, types []string, namespaces map[string]string) ([]string, error)

SendProbe to device

func SendUDPMulticast added in v0.0.13

func SendUDPMulticast(msg string, interfaceName string) ([]string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL