Versions in this module Expand all Collapse all v0 v0.2.0 Dec 24, 2022 v0.1.0 Dec 24, 2022 Changes in this version + func Discovery(cidr string) ([]string, error) + func Listen(ip string) (net.Conn, error) + type Config struct + IpAddress string + Port int + func New(c *Config) Config + func (c *Config) AdjustBright(bright, duration int) (Response, error) + func (c *Config) AdjustColorTemperature(bright, duration int) (Response, error) + func (c *Config) Close() + func (c *Config) CronAdd(timer int) (Response, error) + func (c *Config) CronDelete() (Response, error) + func (c *Config) CronGet() (Response, error) + func (c *Config) GenerateRGB(red, green, blue int) int + func (c *Config) GetProps(p ...interface{}) (Response, error) + func (c *Config) SetAdjust(action, prop string) (Response, error) + func (c *Config) SetBright(brightness int, effect string, duration int) (Response, error) + func (c *Config) SetColorFlow(count, action int, exprs []FlowExpression) (Response, error) + func (c *Config) SetColorTemp(temp int, effect string, duration int) (Response, error) + func (c *Config) SetDefault() (Response, error) + func (c *Config) SetHueSaturation(hue int, sat int, effect string, duration int) (Response, error) + func (c *Config) SetName(name string) (Response, error) + func (c *Config) SetPower(power bool, effect string, duration int) (Response, error) + func (c *Config) SetRGB(red int, green int, blue int, effect string, duration int) (Response, error) + func (c *Config) SetScene(scene Scene) (Response, error) + func (c *Config) StopColorFlow() (Response, error) + type FlowExpression struct + Brightness int + Duration int + Mode int + Value int + type ListenResponse struct + Method string + Params struct{ ... } + func ReadMessage(conn net.Conn) (ListenResponse, error) + type Request struct + ID int + Method string + Params interface{} + type Response struct + ID int + Result []interface{} + type Scene struct + Action string + Brightness int + Color int + ColorFlow []FlowExpression + ColorTemperature int + Duration int + Hue int + Mode int + Saturation int