export

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Export

type Export interface {
	Init() error
	// ExportTo 导出消息:写入Edgex总线、MQTT上云
	ExportTo(deviceData plugin.DeviceData)

	//事件触发回调
	OnEvent(eventCode string, key string, eventValue interface{}) error

	IsReady() bool
}

type MqttExport

type MqttExport struct {
	Broker   string `json:"broker"`
	Username string `json:"username"`
	Password string `json:"password"`
	ClientID string `json:"client_id"`

	ExportTopic string
	// contains filtered or unexported fields
}

func (*MqttExport) ExportTo

func (export *MqttExport) ExportTo(deviceData plugin.DeviceData)

ExportTo 导出消息:写入Edgex总线、MQTT上云

func (*MqttExport) Init

func (export *MqttExport) Init() error

func (*MqttExport) IsReady

func (export *MqttExport) IsReady() bool

func (*MqttExport) OnEvent added in v0.6.0

func (export *MqttExport) OnEvent(eventCode string, key string, eventValue interface{}) error

继承Export OnEvent接口

Jump to

Keyboard shortcuts

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