MQTT

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connection added in v0.3.0

type Connection struct {
	PerformanceDebugChannel chan string

	DebugChannel chan string
	// contains filtered or unexported fields
}

func NewMqttConnection added in v0.3.0

func NewMqttConnection(clientId string, hostname string, port int) *Connection

func (*Connection) GetClientId added in v0.3.0

func (c *Connection) GetClientId() string

func (*Connection) Publish added in v0.3.0

func (c *Connection) Publish(topic string, retained bool, input chan string) error

func (*Connection) PublishWithTransform added in v0.3.0

func (c *Connection) PublishWithTransform(topic string, retained bool, input chan interface{}, transform fn) error

func (*Connection) SetDebugging added in v0.3.0

func (c *Connection) SetDebugging(state bool) *Connection

func (*Connection) SetPassword added in v0.3.0

func (c *Connection) SetPassword(password string) *Connection

func (*Connection) SetPersistentClient added in v0.3.0

func (c *Connection) SetPersistentClient(persistent bool) *Connection

func (*Connection) SetPublisherQos added in v0.3.0

func (c *Connection) SetPublisherQos(qos byte) *Connection

func (*Connection) SetSubscriberQoS added in v0.3.0

func (c *Connection) SetSubscriberQoS(qos byte) *Connection

func (*Connection) SetTLSConfig added in v0.3.0

func (c *Connection) SetTLSConfig(tlsConfig *tls.Config) *Connection

func (*Connection) SetUsername added in v0.3.0

func (c *Connection) SetUsername(username string) *Connection

func (*Connection) Subscribe added in v0.3.0

func (c *Connection) Subscribe(topic string, output chan []byte) error

type DebugLevel added in v0.3.0

type DebugLevel int

Jump to

Keyboard shortcuts

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