tplinkclient

package
v0.0.0-...-33c2882 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend struct {
	Clients []TPLinkClient `json:"clients"`
}

func (*Backend) DiscoverLights

func (b *Backend) DiscoverLights(l *chromaticity.LightResource)

func (*Backend) GetType

func (b *Backend) GetType() string

func (*Backend) ImportLights

func (b *Backend) ImportLights(l *chromaticity.LightResource, from []byte)

func (*Backend) Sync

func (b *Backend) Sync()

type TPLinkClient

type TPLinkClient struct {
	Name    string `json:"name"`
	Address string `json:"address"`
}

type TPLinkLight

type TPLinkLight struct {
	*chromaticity.LightInfo
	LightState *chromaticity.State `json:"state"`
	Client     *TPLinkClient       `json:"-"`
}

func (*TPLinkLight) GetInfo

func (t *TPLinkLight) GetInfo() (i *chromaticity.LightInfo)

func (*TPLinkLight) GetNumPixels

func (t *TPLinkLight) GetNumPixels() (p uint16)

func (*TPLinkLight) GetState

func (t *TPLinkLight) GetState() (s *chromaticity.State)

func (*TPLinkLight) GetType

func (t *TPLinkLight) GetType() string

func (*TPLinkLight) SetColor

func (t *TPLinkLight) SetColor(c colorful.Color)

func (*TPLinkLight) SetColors

func (t *TPLinkLight) SetColors(c []colorful.Color)

Jump to

Keyboard shortcuts

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