mqtt

package
v0.0.0-...-8093eda Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(clientID string, conf *Config) (mqtt.Client, error)

Types

type Config

type Config struct {
	Host     string            `yaml:"host",json:"host"`
	Port     int               `yaml:"port",json:"port"`
	Username string            `yaml:"username",json:"username"`
	Password string            `yaml:"password",json:"password"`
	Topics   map[string]string `yaml:"topics",json:"topics"`
}

Jump to

Keyboard shortcuts

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