Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigCrcChecking ¶
type ConfigDataLength ¶
type ConfigField ¶
type ConfigField struct { Name string Attributes ConfigFieldAttributes Properties ConfigFieldProperties }
type ConfigFieldAttributes ¶
type ConfigFieldProperties ¶
type CrcType ¶
type CrcType string
const ( X25 CrcType = "X25" CCITT CrcType = "CCITT" CRC16 CrcType = "CRC16" MODBUS CrcType = "MODBUS" XMODEM CrcType = "XMODEM" XMODEM2 CrcType = "XMODEM2" CRC32 CrcType = "CRC32" IEEE CrcType = "IEEE" Castagnoli CrcType = "Castagnoli" CRC32C CrcType = "CRC32C" Koopman CrcType = "Koopman" CRC64ISO CrcType = "CRC64ISO" CRC64ECMA CrcType = "CRC64ECMA" )
type FieldValue ¶
type FieldValue struct { Value interface{} SIUnit string }
type ModbusProcessor ¶
type ModbusProcessor struct {
// contains filtered or unexported fields
}
func (*ModbusProcessor) Process ¶
func (r *ModbusProcessor) Process(ctx context.Context, m *service.Message) (service.MessageBatch, error)
type ModbusProcessorConfig ¶
type ModbusProcessorConfig struct { BytesPerAddress int DataLength ConfigDataLength CrcChecking ConfigCrcChecking Fields []ConfigField }
Click to show internal directories.
Click to hide internal directories.