export

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: 7 Imported by: 0

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(deviceData plugin.DeviceData)

	SendStatusChangeNotification(deviceName string, online bool) 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) SendStatusChangeNotification

func (export *MqttExport) SendStatusChangeNotification(deviceName string, online bool) error

Jump to

Keyboard shortcuts

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