Documentation ¶
Overview ¶
Package client lets your create and announce devices on the MQTT broker.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Device ¶
type Device interface { // Common contains the common methods for client and server device.Common // Feature returns the feature with client functions (OnSet(), Update()) available. // Fetching a feature that doesn't exist will _NOT_ return nil, but instead create // a *feature.Fake. To check if feature actually exists; call Feature("name").Exists() Feature(name string) Feature // Features returns a slice of all available features Features() []Feature }
Device in client package is used by applications that are talking to the actual devices, For example an application that's controlling lights over z-wave
Click to show internal directories.
Click to hide internal directories.