Documentation ¶
Index ¶
- Constants
- Variables
- type AnimationMessage
- type AnnouncementMessage
- type Client
- func (c *Client) ConnectLedStrips() map[string]string
- func (c *Client) InformationById(id string) (Information, error)
- func (c *Client) SetAnimationBreathing(col Color) error
- func (c *Client) SetAnimationBreathingById(col Color, id string) error
- func (c *Client) SetAnimationChristmasById(id string) error
- func (c *Client) SetAnimationColorCycle() error
- func (c *Client) SetAnimationColorCycleById(id string) error
- func (c *Client) SetCustomData(data []byte) error
- func (c *Client) SetCustomDataById(data []byte, id string) error
- func (c *Client) SetOnLedStripOnlineCallback(f func(string, string))
- func (c *Client) SetSolidColor(col Color) error
- func (c *Client) SetSolidColorById(col Color, id string) error
- type Color
- type Information
- type SolidColorMessage
Constants ¶
const ( AnnouncementMqttPath = "leds/announcement" QosAtMostOnce = 0 QosAtLeastOnce = 1 QosExactlyOnce = 2 )
const ( SolidColorMode = "SINGLE_COLOR_RGB" GradientColorMode = "GRADIENT_RGB" AnimationColorMode = "ANIMATION_RGB" )
Variables ¶
var ( ErrIdUnknown = errors.New("id is not known") ErrTimeout = errors.New("timeout on request occurred") )
Functions ¶
This section is empty.
Types ¶
type AnimationMessage ¶
type AnnouncementMessage ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) ConnectLedStrips ¶
ConnectLedStrips returns the currently known connected led strips
func (*Client) InformationById ¶
func (c *Client) InformationById(id string) (Information, error)
InformationById returns the information of a led strip with the given id returns an error in case of failure
func (*Client) SetAnimationBreathing ¶
SetAnimationBreathing sets the mode of all known led strips to the animation breathing cycle, increasing and decreasing the brightness of the provided color returns an error in case of failure
func (*Client) SetAnimationBreathingById ¶
SetAnimationBreathingById sets the mode of the led strip for the provided id to the animation breathing cycle, increasing and decreasing the brightness of the provided color returns an error in case of failure
func (*Client) SetAnimationChristmasById ¶
func (*Client) SetAnimationColorCycle ¶
SetAnimationColorCycle sets the mode of all known led strips to the animation color cycle returns an error in case of failure
func (*Client) SetAnimationColorCycleById ¶
SetAnimationColorCycleById sets the mode of the led strip for the given id to the animation color cycle returns an error in case of failure
func (*Client) SetCustomData ¶
SetCustomData pushes the given data directly to all known led strips. !Important: can mess up the led strips returns an error in case of failure
func (*Client) SetCustomDataById ¶
SetCustomDataById pushes the given data directly to the led strip for the given id !Important: can mess up the led strips returns an error in case of failure
func (*Client) SetOnLedStripOnlineCallback ¶
func (*Client) SetSolidColor ¶
SetSolidColor sets the color for all known led strips returns an error in case of failure