ikeatradfri

package
v0.0.0-...-f8c32d9 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dim

func Dim(deviceId string, to int, client *CoapClient) error

func SetColorTemp

func SetColorTemp(deviceId string, kelvin uint, client *CoapClient) error

func SetRGB

func SetRGB(deviceId string, r uint8, g uint8, b uint8, client *CoapClient) error

func TurnOff

func TurnOff(deviceId string, client *CoapClient) error

func TurnOn

func TurnOn(deviceId string, client *CoapClient) error

Types

type CoapClient

type CoapClient struct {
	// contains filtered or unexported fields
}

func NewCoapClient

func NewCoapClient(baseUrl string, username string, preSharedKey string) *CoapClient

func (*CoapClient) Put

func (c *CoapClient) Put(path string, data string) error

type ColorTemp

type ColorTemp int
const (
	ColorTempWarm ColorTemp = iota
	ColorTempNormal
	ColorTempCold
)

Jump to

Keyboard shortcuts

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