mqtt

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConnectConfig

type ConnectConfig struct {
	ClientId string   `json:"clientId"`
	Broker   string   `json:"broker"`
	Username string   `json:"username"`
	Password string   `json:"password"`
	Topics   []string `json:"topics"`
}

type EncodeData

type EncodeData struct {
	Topic   string `json:"topic"`
	Payload string `json:"payload"`
}

type Msg

type Msg struct {
	Topic   string `json:"topic"`
	Payload string `json:"payload"`
}

type Plugin

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

func (*Plugin) Connector

func (p *Plugin) Connector(deviceName, pointName string) (plugin.Connector, error)

Connector 连接器

func (*Plugin) Destroy

func (p *Plugin) Destroy() error

Destroy 销毁驱动

func (*Plugin) Initialize

func (p *Plugin) Initialize(logger *zap.Logger, c config.Config, handler plugin.OnReceiveHandler, ls *lua.LState) (err error)

Initialize 初始化日志、配置、接收回调

func (*Plugin) ProtocolAdapter

func (p *Plugin) ProtocolAdapter() plugin.ProtocolAdapter

ProtocolAdapter 协议适配器

Jump to

Keyboard shortcuts

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