opcda

package
v0.0.0-...-6bc7dbf Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OpcTag

type OpcTag struct {
	// contains filtered or unexported fields
}

type Opcda

type Opcda struct {
	// Configuration
	MeasurementName string        `toml:"name"`
	Server          string        `toml:"server"`
	Nodes           []string      `toml:"nodes"`
	OpcTagConf      []TagSettings `toml:"items"`

	Log telegraf.Logger `toml:"-"`
	// contains filtered or unexported fields
}

func (*Opcda) Description

func (s *Opcda) Description() string

func (*Opcda) Gather

func (s *Opcda) Gather(acc telegraf.Accumulator) error

func (*Opcda) Init

func (s *Opcda) Init() error

Init is for setup, and validating config.

func (*Opcda) InitTags

func (s *Opcda) InitTags() error

InitNodes is read config and init OPC tags

func (*Opcda) SampleConfig

func (s *Opcda) SampleConfig() string

func (*Opcda) Start

func (s *Opcda) Start(acc telegraf.Accumulator) error

func (*Opcda) Stop

func (s *Opcda) Stop()

type TagSettings

type TagSettings struct {
	ItemID    string     `toml:"item"`
	FieldName string     `toml:"name"`
	TagsSlice [][]string `toml:"tags"`
}

Jump to

Keyboard shortcuts

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