s7comm

package
v0.0.0-...-828b12e Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2021 License: GPL-3.0 Imports: 5 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"`
}

type S7Comm

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

	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