mqtt

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2026 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 MQTTClient

type MQTTClient struct {
	// contains filtered or unexported fields
}

func New

func New(o *MQTT.ClientOptions) *MQTTClient

func (*MQTTClient) Close

func (m *MQTTClient) Close()

func (*MQTTClient) Connect

func (m *MQTTClient) Connect(timeout time.Duration) error

func (*MQTTClient) Publish

func (m *MQTTClient) Publish(topic string, qos byte, retain bool, payload []byte) error

func (*MQTTClient) SetAvailability

func (m *MQTTClient) SetAvailability(topic string, onlinePayload []byte)

Jump to

Keyboard shortcuts

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