opcua

package
v0.0.0-...-c685a14 Latest Latest
Warning

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

Go to latest
Published: May 1, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitOpcUaClient

func InitOpcUaClient(ep *ua.EndpointDescription)

Types

type Description

type Description struct {
	Endpoint string
	NodeID   string
	Policy   string
	Mode     string
	Interval time.Duration
}

func GetConfigFromYAML

func GetConfigFromYAML(file string) (*Description, error)

type OpcuaDescription

type OpcuaDescription struct {
	Endpoint struct {
		URL      string `yaml:"url"`
		Port     int    `yaml:"port"`
		NodeID   string `yaml:nodeId`
		Policy   string `yaml:"securityPolicy"`
		Mode     string `yaml:"securityMode"`
		Cert     string `yaml:"certificate"`
		Key      string `yaml:"privateKey"`
		Interval int    `yaml:"subscriptionInterval"`
	}
}

Jump to

Keyboard shortcuts

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