Documentation
¶
Index ¶
Constants ¶
View Source
const ClientIdPrefix = "telegraf"
View Source
const MaxClientIdLen = 8
View Source
const MaxRetryCount = 3
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MQTT ¶
type MQTT struct {
Servers []string `toml:"servers"`
Username string
Password string
Database string
Timeout internal.Duration
TopicPrefix string
Client *paho.Client
Opts *paho.ClientOptions
sync.Mutex
}
func (*MQTT) CreateOpts ¶
func (m *MQTT) CreateOpts() (*paho.ClientOptions, error)
func (*MQTT) Description ¶
func (*MQTT) SampleConfig ¶
Click to show internal directories.
Click to hide internal directories.