mqtt

package
v0.0.0-...-141bb29 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 8, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Broker

type Broker interface {
	Dial(clientId string, statusTopic string) (Conn, error)
}

func NewBroker

func NewBroker(uri string) Broker

type Conn

type Conn interface {
	io.Closer
	Publish(topic string, payload string)
	PublishRetain(topic string, payload string)
	Subscribe(topic string, cb func(topic string, payload string))
}

type MQTTClientConfig

type MQTTClientConfig struct {
	URI      string `yaml:"uri"`
	ClientID string `yaml:"client_id"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL