virtual_adapter

package
v0.0.0-...-6312dd6 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Adapter

type Adapter struct {
	*proxy.Adapter
}

func NewVirtualAdapter

func NewVirtualAdapter(adapterId string) *Adapter

func (*Adapter) HandleDeviceSaved

func (a *Adapter) HandleDeviceSaved(msg messages.DeviceSavedNotificationJsonData)

func (*Adapter) StartPairing

func (a *Adapter) StartPairing(t <-chan time.Time)

type Device

type Device struct {
	*devices.Device
}

func NewVirtualDevice

func NewVirtualDevice(device devices.Entity) *Device

func (*Device) SetCredentials

func (d *Device) SetCredentials(username string, password string) error

func (*Device) SetPin

func (d *Device) SetPin(pin string) error

type Property

type Property struct {
	*properties.Property
}

func NewVirtualProperty

func NewVirtualProperty(p *properties.Property) *Property

func (*Property) SetPropertyValue

func (p *Property) SetPropertyValue(v any) error

Jump to

Keyboard shortcuts

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