mqtt

package
v0.0.0-...-0353727 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2016 License: Apache-2.0 Imports: 1 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 interface {
	Start() error
	PublishMessage(topic string, message []byte)
	StartSubscription(topic string, callback func(message Message)) error
}

func NewPahoClient

func NewPahoClient(options ClientOptions) Client

type ClientOptions

type ClientOptions struct {
	Broker, ClientId   string
	Username, Password string
	OnConnectionLost   func(error)
}

type Message

type Message interface {
	Topic() string
	Payload() []byte
}

Jump to

Keyboard shortcuts

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