Versions in this module Expand all Collapse all v5 v5.0.1 Feb 26, 2024 v5.0.0 Feb 9, 2024 Changes in this version + const DefaultServer + const DiscoveryPrefix + type Client struct + func NewMQTTClient(ctx context.Context, preferences prefs) (*Client, error) + func (c *Client) Publish(msgs ...*Msg) error + func (c *Client) Subscribe(subs ...*Subscription) error + type Msg struct + Message json.RawMessage + QOS byte + Retained bool + Topic string + func NewMsg(topic string, msg json.RawMessage) *Msg + func (m *Msg) Retain() *Msg + type Subscription struct + Callback func(MQTT.Client, MQTT.Message) + QOS byte + Retained bool + Topic string Other modules containing this package github.com/joshuar/go-hass-anything github.com/joshuar/go-hass-anything/v10 github.com/joshuar/go-hass-anything/v11 github.com/joshuar/go-hass-anything/v12 github.com/joshuar/go-hass-anything/v2 github.com/joshuar/go-hass-anything/v3 github.com/joshuar/go-hass-anything/v4 github.com/joshuar/go-hass-anything/v6 github.com/joshuar/go-hass-anything/v7 github.com/joshuar/go-hass-anything/v8 github.com/joshuar/go-hass-anything/v9