Versions in this module Expand all Collapse all v1 v1.0.0 Aug 2, 2023 Changes in this version + type Connector interface + Release func() (err error) + Send func(data interface{}) (err error) + type DeviceData struct + DeviceName string + Values []PointData + func (d DeviceData) ToJSON() string + type EncodeMode string + const ReadMode + const WriteMode + type H map[string]interface + type OnReceiveHandler func(plugin Plugin, raw interface{}) (result interface{}, err error) + type Plugin interface + Connector func(deviceName, pointName string) (connector Connector, err error) + Destroy func() error + Initialize func(logger *zap.Logger, c config.Config, handler OnReceiveHandler, ls *lua.LState) (err error) + ProtocolAdapter func() ProtocolAdapter + type PointData struct + PointName string + Type string + Value interface{} + type ProtocolAdapter interface + Decode func(raw interface{}) (res []DeviceData, err error) + Encode func(deviceName string, mode EncodeMode, value PointData) (res interface{}, err error)