mqttclient

package
v0.0.0-...-d3ca417 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: MIT 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 {
	// contains filtered or unexported fields
}

func NewMqttClient

func NewMqttClient(host string, port int, user, password string, client_id string) *MqttClient

func (*MqttClient) Connect

func (mc *MqttClient) Connect() error

func (*MqttClient) SendCommand

func (mc *MqttClient) SendCommand(topic, payload string) error

func (*MqttClient) Subscribe

func (mc *MqttClient) Subscribe(topic string, callback mqtt.MessageHandler) error

Jump to

Keyboard shortcuts

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