linkmqtt

package
v0.0.0-...-fc28734 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(cfg config.NorthMQTTConfig) (link.Link, error)

func NewObserver

func NewObserver() mqtt.Observer

Types

type MqttClient

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

func (*MqttClient) Close

func (m *MqttClient) Close() error

func (*MqttClient) GetFailMsg

func (m *MqttClient) GetFailMsg() chan []byte

func (*MqttClient) GetLinkID

func (m *MqttClient) GetLinkID() string

func (*MqttClient) Send

func (m *MqttClient) Send(ctx *comctx.Context, data *link.SendMessage) error

func (*MqttClient) SetFailMsg

func (m *MqttClient) SetFailMsg(fallMsg chan []byte)

func (*MqttClient) SyncSend

func (m *MqttClient) SyncSend(ctx *comctx.Context, data []byte) error

Jump to

Keyboard shortcuts

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