internal

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IP = "ip"
)
View Source
const ProtocolName = "bacnet"

Variables

This section is empty.

Functions

This section is empty.

Types

type Plugin

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

func (*Plugin) Connector

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

Connector 连接器

func (*Plugin) Destroy

func (p *Plugin) Destroy() error

Destroy 销毁插件

func (*Plugin) Initialize

func (p *Plugin) Initialize(c config.DeviceConfig)

Initialize 插件初始化 logger *zap.Logger、ls *lua.LState 参数未来可能会废弃

type PointWriteValue

type PointWriteValue struct {
	// PointName 点位名称
	PointName string `json:"pointName"`
	// Value 点位值
	Value interface{} `json:"value"`
	//模型名称,某些驱动解析需要根据模型作区分
	ModelName string `json:"modelName"`
	//前置操作,例如空开要先解锁,空调要先开机
	PreOp []PointWriteValue `json:"preOp"`
}

PointWriteValue 点位写操作的结构体

Jump to

Keyboard shortcuts

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