merge

package
v0.2024.4 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: GPL-3.0 Imports: 40 Imported by: 0

Documentation

Index

Constants

View Source
const UdmiMergeName = "udmi"

Variables

View Source
var (
	ErrTraitNotSupported = errors.New("trait not supported")
)

Functions

func IntoTrait

func IntoTrait(client *gobacnet.Client, devices known.Context, statuses *statuspb.Map, traitConfig config.RawTrait, logger *zap.Logger) (node.SelfAnnouncer, error)

Types

type ElectricPhaseConfig

type ElectricPhaseConfig struct {
	Current *config.ValueSource `json:"current,omitempty"`
	Voltage *config.ValueSource `json:"voltage,omitempty"`
	Rating  *config.ValueSource `json:"rating,omitempty"`

	PowerFactor   *config.ValueSource `json:"powerFactor,omitempty"`
	RealPower     *config.ValueSource `json:"realPower,omitempty"`
	ApparentPower *config.ValueSource `json:"apparentPower,omitempty"`
	ReactivePower *config.ValueSource `json:"reactivePower,omitempty"`
}

type UdmiMergeConfig

type UdmiMergeConfig struct {
	config.Trait
	TopicPrefix string                         `json:"topicPrefix,omitempty"`
	Points      map[string]*config.ValueSource `json:"points"`
}

Jump to

Keyboard shortcuts

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