mqtt

package
v0.0.0-...-9e6842c Latest Latest
Warning

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

Go to latest
Published: May 17, 2021 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MqttClient

type MqttClient struct {
	Client mq.Client
	// contains filtered or unexported fields
}

func NewClient

func NewClient(clientId, broker string, port int) (*MqttClient, error)

func (*MqttClient) Publish

func (m *MqttClient) Publish(topic, text string) error

Publish will send the message *text* to topic *topic*.

Jump to

Keyboard shortcuts

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