wsdiscovery

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

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 DevicesFromProbeResponses

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

func GetAvailableDevicesAtSpecificEthernetInterface

func GetAvailableDevicesAtSpecificEthernetInterface(interfaceName string) []onvif.Device

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

SendProbe to device

func SendUDPMulticast

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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