mqtt

package
v0.0.0-...-6cd7eb2 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateMQTTClient

func CreateMQTTClient(config configuration.MQTTConfig) models.MQTTClient

CreateMQTTClient creates a new MQTT client

Types

type MQTT

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

MQTT is the implementation of the MQTT client

func (*MQTT) Publish

func (m *MQTT) Publish(topic string, message string, qos byte)

Publish a message on a topic

func (*MQTT) Start

func (m *MQTT) Start(api *models.API)

Start running the MQTT client

func (*MQTT) Stop

func (m *MQTT) Stop()

Stop the MQTT client

Jump to

Keyboard shortcuts

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