s7comm

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NodeSettings

type NodeSettings struct {
	Name        string `toml:"name"`
	Address     string `toml:"address"`
	Type        string `toml:"type"`
	EnableDedup bool   `toml:"enable_dedup" default:"false"`
}

type S7Comm

type S7Comm struct {
	MetricName  string `toml:"name"`
	Endpoint    string `toml:"plc_ip"`
	Rack        int    `toml:"plc_rack"`
	Slot        int    `toml:"plc_slot"`
	ConnectType int    `toml:"plc_connect_type" default:"3"`

	Timeout     config.Duration `toml:"connect_timeout"`
	IdleTimeout config.Duration `toml:"request_timeout"`

	Nodes []NodeSettings  `toml:"nodes"`
	Log   telegraf.Logger `toml:"-"`
	// contains filtered or unexported fields
}

S7Comm

func (*S7Comm) Connect

func (s *S7Comm) Connect() error

func (*S7Comm) Description

func (s *S7Comm) Description() string

func (*S7Comm) Gather

func (s *S7Comm) Gather(a telegraf.Accumulator) error

func (*S7Comm) Init

func (s *S7Comm) Init() error

func (*S7Comm) SampleConfig

func (s *S7Comm) SampleConfig() string

func (*S7Comm) Stop

func (s *S7Comm) Stop() error

Jump to

Keyboard shortcuts

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