Documentation ¶
Overview ¶
Package mqtt implements the MQTT provider using the mqtt driver.
Index ¶
- func OpenConnection(ctx context.Context, settings Settings, topics provider.Topics) (pc *provider.Connection, err error)
- func OpenSubscription(ctx context.Context, client mqtt.Client, topicName string, qos byte) (*pubsub.Subscription, error)
- func OpenTopic(client mqtt.Client, topicName string, qos byte) (*pubsub.Topic, error)
- type HTTPHeadersProvider
- type Settings
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OpenConnection ¶ added in v3.9.0
func OpenConnection(ctx context.Context, settings Settings, topics provider.Topics) (pc *provider.Connection, err error)
OpenConnection opens a MQTT connection using the given settings.
Types ¶
type HTTPHeadersProvider ¶ added in v3.9.2
HTTPHeadersProvider provides HTTP headers as they are needed by the MQTT client.
Click to show internal directories.
Click to hide internal directories.