mqt

package module
v0.0.0-...-e41e981 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2023 License: LGPL-2.1 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(opts ...Option) (mqtt.Client, error)

func Pub

func Pub(topic string, qos byte, retained bool, payload interface{}) mqtt.Token

func Sub

func Sub(topic string, qos byte, callback mqtt.MessageHandler)

Types

type Option

type Option func(*Options)

func AddBroker

func AddBroker(server string) Option

func ClientId

func ClientId(idStr string) Option

func Password

func Password(password string) Option

func Username

func Username(username string) Option

type Options

type Options struct {
}

type Route

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

Jump to

Keyboard shortcuts

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