Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Control ¶
type Control struct { Device string `json:"device"` Model string `json:"model"` Cmd ControlCmd `json:"cmd"` }
Control struct manages the control json data that will be send to govee.
func (*Control) Send ¶
func (c *Control) Send(d devices.Device, conn general.Connection, color ControlCmdColor) []byte
Send sends all the data to govee to set the value of the colour
type ControlCmd ¶
type ControlCmd struct { Name string `json:"name"` Value ControlCmdColor `json:"value"` }
ControlCmd is the control command json that will be sent to govee.
type ControlCmdColor ¶
ControlCmdColor is the struct for managing the RGB values for each colour.
Click to show internal directories.
Click to hide internal directories.