Versions in this module Expand all Collapse all v0 v0.0.1-dev.2 Oct 4, 2024 v0.0.1-dev.1 Aug 13, 2024 v0.0.0 May 14, 2024 Changes in this version + const ADDRESS_TYPE + const DBADDRESS + const HOST + const LENGTH + const PORT + const POS + const Protocol + const RACK + const SLOT + const STARTING_ADDRESS + func NewProtocolDriver() interfaces.ProtocolDriver + type CommandInfo struct + AddressType string + DbAddress int + Host string + Length int + Port int + Pos int + Rack int + Slot int + StartingAddress int + ValueType string + type DBInfo struct + Amount int + Area int + DBArray []string + DBNumber int + Start int + WordLength int + type Driver struct + func (d *Driver) Discover() error + func (d *Driver) Start() error + func (s *Driver) AddDevice(deviceName string, protocols map[string]models.ProtocolProperties, ...) error + func (s *Driver) HandleReadCommands(deviceName string, protocols map[string]models.ProtocolProperties, ...) (res []*sdkModel.CommandValue, err error) + func (s *Driver) HandleWriteCommands(deviceName string, protocols map[string]models.ProtocolProperties, ...) error + func (s *Driver) Initialize(sdk interfaces.DeviceServiceSDK) error + func (s *Driver) NewS7Client(deviceName string, protocol map[string]models.ProtocolProperties) *S7Client + func (s *Driver) RemoveDevice(deviceName string, protocols map[string]models.ProtocolProperties) error + func (s *Driver) Stop(force bool) error + func (s *Driver) UpdateDevice(deviceName string, protocols map[string]models.ProtocolProperties, ...) error + func (s *Driver) ValidateDevice(device models.Device) error + type S7Client struct + Client gos7.Client + DeviceName string + type S7Info struct + ConnEstablishingRetry int + ConnRetryWaitTime int + DbAddress int + Host string + Port int + Rack int + ReadSize int + Slot int + StartAddress int