Versions in this module Expand all Collapse all v2 v2.0.0 Jan 29, 2026 Changes in this version + const ReadMode + const RealTimeExport + const WriteMode + var NotSupportDecode = errors.New("the protocol adapter does not support decode functions") + var NotSupportEncode = errors.New("the protocol adapter does not support encode functions") + var NotSupportGetConnector = errors.New("the protocol does not support getting connector") + func WrapperDiscoverEvent(devicesData []DeviceData, connectionKey string, protocolName string) + type BaseConnection struct + ConnectionKey string + Discover bool + Enable bool + ProtocolKey string + Virtual bool + type Connector interface + Encode func(deviceId string, mode EncodeMode, values ...PointData) (res interface{}, err error) + Release func() (err error) + Send func(data interface{}) (err error) + type DeviceData struct + Events []event.Data + ExportType ExportType + ID string + Values []PointData + type EncodeMode string + type ExportType string + type Plugin interface + Connector func(deviceId string) (connector Connector, err error) + Destroy func() error + Initialize func(c config.DeviceConfig) + type PointData struct + PointName string + Value interface{} + type PointReadValue struct + ID string + PointName string + Value interface{} Other modules containing this package github.com/ibuilding-x/driver-box