mqtt

package
v0.2.15 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mqtt

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

func NewMqttClient

func NewMqttClient(logger logger.Logger) *Mqtt

func (*Mqtt) Connect

func (m *Mqtt) Connect()

func (*Mqtt) Create

func (m *Mqtt) Create(broker string, client_id string)

func (*Mqtt) Disconnect

func (m *Mqtt) Disconnect()

func (*Mqtt) Publish

func (m *Mqtt) Publish(topic string, message string)

func (*Mqtt) Subscribe

func (m *Mqtt) Subscribe(topic string, callback func(MQTT.Client, MQTT.Message))

Jump to

Keyboard shortcuts

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