Documentation ¶
Index ¶
- Constants
- func Discover2(iface string, service string, disableipv6 bool) (map[string]DiscoveredDevice, error)
- func ListInterfaces(name string) []net.Interface
- type DiscoveredDevice
- func Discover(iface string) ([]DiscoveredDevice, error)
- func DiscoverAllComissionable(interfac string, disableipv6 bool) []DiscoveredDevice
- func DiscoverAllComissioned(interfac string, disableipv6 bool) []DiscoveredDevice
- func DiscoverComissioned(interfac string, disableipv6 bool, id string) []DiscoveredDevice
- type DiscoveredType
Constants ¶
View Source
const DiscoveredTypeCommissionable = 2
View Source
const DiscoveredTypeCommissioned = 1
Variables ¶
This section is empty.
Functions ¶
func ListInterfaces ¶
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
Click to show internal directories.
Click to hide internal directories.