mqtt

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MQTTService

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

func NewMQTTService

func NewMQTTService() *MQTTService

func (*MQTTService) Close

func (m *MQTTService) Close()

func (*MQTTService) Get

func (m *MQTTService) Get() <-chan MessageFromBroker

func (*MQTTService) Put

func (m *MQTTService) Put(msg MessageFromBroker)

func (*MQTTService) RegisterMqttClient

func (m *MQTTService) RegisterMqttClient(
	clientID string,
	brokerURL string,
	topicsToSub []string,
	deviceCert string,
	deviceCertKey string,
	rootCA string,
) error

func (*MQTTService) UserInputPubHandler

func (m *MQTTService) UserInputPubHandler(topic string, message string)

type MessageFromBroker

type MessageFromBroker struct {
	Topic   string
	Payload []byte
}

Jump to

Keyboard shortcuts

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