discover

package
v0.0.0-...-5413b3e Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2023 License: BSD-2-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const DiscoveredTypeCommissionable = 2
View Source
const DiscoveredTypeCommissioned = 1

Variables

This section is empty.

Functions

func Discover2

func Discover2(iface string, service string, disableipv6 bool) (map[string]DiscoveredDevice, error)

func ListInterfaces

func ListInterfaces(name string) []net.Interface

Types

type DiscoveredDevice

type DiscoveredDevice struct {
	Name      string
	Host      string
	Type      DiscoveredType
	Addrs     []net.IP
	PH        string
	CM        string
	VP        string
	VendorId  int
	ProductId int
	D         string
	DN        string
}

func Discover

func Discover(iface string) ([]DiscoveredDevice, error)

func DiscoverAllComissionable

func DiscoverAllComissionable(interfac string, disableipv6 bool) []DiscoveredDevice

DiscoverAllComissionable uses mdns to discover all matter devices with open commissioning window

func DiscoverAllComissioned

func DiscoverAllComissioned(interfac string, disableipv6 bool) []DiscoveredDevice

DiscoverAllComissioned uses mdns to discover all matter devices which are already commissioned. Name of these devices contains compressed fabric identifier and id of device in fabric.

func DiscoverComissioned

func DiscoverComissioned(interfac string, disableipv6 bool, id string) []DiscoveredDevice

DiscoverComissioned uses mdns to discover concrete already commissioned matter device. It searches for device commissioned to current fabric with identifier id.

func (DiscoveredDevice) Dump

func (d DiscoveredDevice) Dump()

type DiscoveredType

type DiscoveredType int

Jump to

Keyboard shortcuts

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