mqtt

package
v0.0.0-...-e93fc31 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 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 Client

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

func NewMQTTClient

func NewMQTTClient(host string, statusChangeCallback func(topicBase string, newStatus string)) *Client

func (*Client) Publish

func (o *Client) Publish(topic string, data string)

func (*Client) RegisterCallbacks

func (o *Client) RegisterCallbacks(topicBase string, messageCallback MessageCallback)

func (*Client) Run

func (o *Client) Run() error

type DisconnectCallback

type DisconnectCallback = func()

type MessageCallback

type MessageCallback = func(topicEp string, msg string)

Jump to

Keyboard shortcuts

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