config

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2022 License: GPL-3.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 AddrConfig

type AddrConfig struct {
	Ra       string `yaml:"ra"`
	Platform string `yaml:"platform"`
}

type Config

type Config struct {
	Mqtt MqttConfig        `yaml:"mqtt"`
	User client.UserConfig `yaml:"user"`
	Addr AddrConfig        `yaml:"addr"`
}

Config holds the configuration

type MqttConfig

type MqttConfig struct {
	ServerAddr        string `yaml:"server_addr"`         // MQTT server URL
	ClientName        string `yaml:"client_name"`         // client name
	DeviceType        string `yaml:"device_type"`         // device type
	Topic             string `yaml:"topic"`               // topic on which to publish messaged
	Qos               byte   `yaml:"qos"`                 // qos to use when publishing
	Keepalive         uint16 `yaml:"keepalive"`           // seconds between keepalive packets
	ConnectRetryDelay uint16 `yaml:"connect_retry_delay"` // period between connection attempts
	Debug             bool   `yaml:"debug"`               // autopaho and paho debug output requested
}

Jump to

Keyboard shortcuts

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