mqtt

package
v1.0.14 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrCouldNotConnectToMQTTServer = errors.New("could not connect to mqtt server")
)

Functions

This section is empty.

Types

type MQTTCLientConfig

type MQTTCLientConfig struct {
	Host     string
	ClientID string
	Username string
	Password string
}

func NewMQTTClientConfig

func NewMQTTClientConfig(host, clientID, username, password string) *MQTTCLientConfig

type MQTTClient

type MQTTClient struct {
	Client MQTT.Client
}

func InitMQTT

func InitMQTT(config *MQTTCLientConfig) (*MQTTClient, error)

func (*MQTTClient) Noop

func (m *MQTTClient) Noop()

Jump to

Keyboard shortcuts

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