Documentation ¶
Index ¶
Constants ¶
View Source
const ( DiscoveryPrefix = "homeassistant" DefaultServer = "localhost:1883" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AgentConfig ¶
type MQTTClient ¶
type MQTTClient struct {
// contains filtered or unexported fields
}
func NewMQTTClient ¶
func NewMQTTClient(cfg AgentConfig) (*MQTTClient, error)
func (*MQTTClient) Publish ¶
func (c *MQTTClient) Publish(msgs ...*MQTTMsg) error
func (*MQTTClient) Subscribe ¶
func (c *MQTTClient) Subscribe(subs ...*MQTTSubscription) error
Click to show internal directories.
Click to hide internal directories.