mqtt

package
v0.0.0-...-9942e84 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectToBroker

func ConnectToBroker(mqttConf MqttConfig, publish PublishChannel, config *viper.Viper) error

func NewMqttRouter

func NewMqttRouter(publishChannel PublishChannel) *gin.Engine

Types

type Message

type Message struct {
	Topic   string
	Payload string
}

func (Message) String

func (msg Message) String() string

type MqttConfig

type MqttConfig struct {
	Host     string
	Port     int
	Username string
	Password string
	ClientId string
}

type MqttController

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

type PublishChannel

type PublishChannel chan Message

Jump to

Keyboard shortcuts

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