deviceshifuopcua

package
v0.53.0 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DeviceConfigmapCertificatePath string = "/etc/edgedevice/certificate"
	DeviceSecretPasswordPath       string = "/etc/edgedevice/secret/password"

	DefaultOPCUARequestMaxAge = 2000
)

DeviceConfigmapCertificatePath default cert path

Variables

This section is empty.

Functions

This section is empty.

Types

type DeviceCommandHandlerOPCUA

type DeviceCommandHandlerOPCUA struct {
	HandlerMetaData *HandlerMetaData
	// contains filtered or unexported fields
}

DeviceCommandHandlerOPCUA handler for opcua

type DeviceShifu

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

DeviceShifu implemented from deviceshifuBase and OPC UA Setting and client

func New

func New(deviceShifuMetadata *deviceshifubase.DeviceShifuMetaData) (*DeviceShifu, error)

New This function creates a new Device Shifu based on the configuration

func (*DeviceShifu) Start

func (ds *DeviceShifu) Start(stopCh <-chan struct{}) error

Start start opcua telemetry

func (*DeviceShifu) Stop

func (ds *DeviceShifu) Stop() error

Stop http server

type HandlerMetaData

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

HandlerMetaData MetaData for OPC UA handler

type OPCUAInstruction

type OPCUAInstruction struct {
	OPCUAInstructionProperty *OPCUAInstructionProperty `yaml:"instructionProperties,omitempty"`
}

OPCUAInstruction OPCUA Instruction

type OPCUAInstructionProperty

type OPCUAInstructionProperty struct {
	OPCUANodeID string `yaml:"OPCUANodeID"`
}

OPCUAInstructionProperty OPCUA Instruction's Property

type OPCUAInstructions

type OPCUAInstructions struct {
	Instructions map[string]*OPCUAInstruction
}

OPCUAInstructions OPCUA Instructions

func CreateOPCUAInstructions

func CreateOPCUAInstructions(dsInstructions *deviceshifubase.DeviceShifuInstructions) *OPCUAInstructions

CreateOPCUAInstructions Create OPCUA Instructions

type WriteRequest added in v0.22.0

type WriteRequest struct {
	Value interface{} `json:"value"`
}

Jump to

Keyboard shortcuts

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