mqtt

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2020 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// MQTT is disabled by default
	PLUGIN = node.NewPlugin("MQTT", node.Disabled, configure, run)
)

Functions

This section is empty.

Types

type Broker

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

Simple mqtt publisher abstraction

func NewBroker

func NewBroker() (*Broker, error)

Create a new publisher.

func (*Broker) Send

func (b *Broker) Send(topic string, message string) error

Publish a new list of messages.

func (*Broker) Shutdown

func (b *Broker) Shutdown() error

Stop the broker.

func (*Broker) Start

func (b *Broker) Start() error

Start the broker

Jump to

Keyboard shortcuts

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