mosquitto

package
v0.0.0-...-f9d3b1f Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connection

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

func New

func New(config *MqttConfig) (*Connection, error)

func (*Connection) InsertRecord

func (conn *Connection) InsertRecord(measurement map[string]interface{}) error

func (*Connection) InsertRecordStation

func (conn *Connection) InsertRecordStation(measurement map[string]interface{}) error

func (*Connection) Subscribe

func (conn *Connection) Subscribe(topic string, callback mqtt.MessageHandler)

type MqttConfig

type MqttConfig struct {
	Url      string `yaml:"url"`
	User     string `yaml:"user"`
	Password string `yaml:"password"`
	Prefix   string `yaml:"prefix"`
}

Jump to

Keyboard shortcuts

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