Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoConnection = errors.New("no MQTT connection")
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is the connection to the MQTT broker.
type Device ¶
type Device interface { Name() string Configuration() []*Msg States() []*Msg Subscriptions() []*Subscription }
type Msg ¶
type Msg struct { Topic string Message json.RawMessage QOS byte Retained bool }
Msg represents a message that can be sent or received on the MQTT bus.
type Subscription ¶
Subscription represents a listener on a specific Topic, that will pass any messages sent to that topic to the Callback function.
Click to show internal directories.
Click to hide internal directories.