Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Watchdog ¶
Watchdog monitors the messages coming over the LAN and keeps information about all of the Lights it hears. It also acts as client, and allows interaction with lights on the LAN.
func NewLifxWatchdog ¶
func NewLifxWatchdog(c *WatchdogConf) *Watchdog
NewLifxWatchdog creates a new watchdog and starts it monitoring the LAN.
func (*Watchdog) GetConf ¶
func (w *Watchdog) GetConf() *WatchdogConf
GetConf returns the current configuration of the Watchdog
func (*Watchdog) SetConf ¶
func (w *Watchdog) SetConf(nc *WatchdogConf)
SetConf will set a new conf object.
type WatchdogConf ¶
type WatchdogConf struct { RescanSeconds int // How many seconds between each full re-scan of the network. (Discovers new lights) BulbUpdateStateMillis int // How many milliseconds between each request to the bulb to update it's state BulbUpdateOtherSeconds int // How many seconds between re-fetching all non-state information from the bulb MQTTServer string // The URL of the server to connect to MQTTTopicPrefix string // Prefix all of our channel names with this MQTTDeviceID string // What should this device call itself? }
Click to show internal directories.
Click to hide internal directories.