mqtt

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Disconnector

type Disconnector interface {
	Disconnect(waitms uint)
}

func Subscribe

func Subscribe(config config.MQTT, fwd func(mqlux.Message)) (Disconnector, error)

Subscribe connects to the MQTT server and subscribes the handler function to /#. Should only be called once for each client.

Jump to

Keyboard shortcuts

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