mqtt

package module
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2023 License: AGPL-3.0 Imports: 5 Imported by: 1

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 NewMQTTClient

func NewMQTTClient(config types.MQTTConfig) *MQTTClient

func (*MQTTClient) Close

func (client *MQTTClient) Close() (err error)

func (*MQTTClient) Connect

func (client *MQTTClient) Connect() error

func (*MQTTClient) Produce added in v0.0.5

func (client *MQTTClient) Produce(message []byte) (err error)

func (*MQTTClient) Subscribe

func (client *MQTTClient) Subscribe(handler func(message []byte))

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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