driverbox

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2025 License: Apache-2.0 Imports: 42 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Exports exports
View Source
var Plugins plugins
View Source
var SerialNo = "driver-box"

SerialNo 网关编号 Deprecated: 待删除,该变量无法在 export、plugin 中使用,会导致循环依赖

Functions

func GetSerialNo added in v1.2.2

func GetSerialNo() string

GetSerialNo 获取网关编号

func ReadPoint added in v0.8.0

func ReadPoint(deviceId string, pointName string) error

触发某个设备点位的读取动作,指令会下发值驱动层

func SetSerialNo added in v1.2.2

func SetSerialNo(sn string)

SetSerialNo 设置网关编号 提示:优先通过函数修改,而不是直接修改 SerialNo 变量值

func Start

func Start() error

func TriggerEvents added in v1.0.0

func TriggerEvents(eventCode string, key string, value interface{})

触发运行时事件

func WritePoint added in v0.8.0

func WritePoint(deviceId string, pointData plugin.PointData) error

触发某个设备点位的写入操作

func WritePoints added in v0.8.0

func WritePoints(deviceId string, pointData []plugin.PointData) error

批量写点位

Types

This section is empty.

Directories

Path Synopsis
Package config 核心配置
Package config 核心配置
pkg

Jump to

Keyboard shortcuts

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