mqtt

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Module

func Module() fx.Option

Types

type MqttClient

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

func NewMqttClient

func NewMqttClient() *MqttClient

func (*MqttClient) Connect

func (m *MqttClient) Connect(attemp int) error

func (*MqttClient) Disconnect

func (m *MqttClient) Disconnect() error

func (*MqttClient) Publish

func (m *MqttClient) Publish(topic string, payload interface{}) error

func (*MqttClient) Subscribe

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

func (*MqttClient) Unsubscribe

func (m *MqttClient) Unsubscribe(topic string) error

Jump to

Keyboard shortcuts

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