victronDevice

package
v3.2.2 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config interface {
	Device() string
	Kind() types.VictronDeviceKind
	IoLog() string
	PollInterval() time.Duration
}

type DeviceStruct

type DeviceStruct struct {
	device.State
	// contains filtered or unexported fields
}

func NewDevice

func NewDevice(
	deviceConfig device.Config,
	victronConfig Config,
	stateStorage *dataflow.ValueStorage,
) *DeviceStruct

func (*DeviceStruct) Model

func (c *DeviceStruct) Model() string

func (*DeviceStruct) Run

func (c *DeviceStruct) Run(ctx context.Context) (err error, immediateError bool)

type Register added in v3.2.0

type Register struct {
	veregister.Register
}

Register is used as a wrapper for veregister.Register to implement dataflow.Register

func (Register) Enum added in v3.2.0

func (r Register) Enum() map[int]string

func (Register) RegisterType added in v3.2.0

func (r Register) RegisterType() dataflow.RegisterType

func (Register) Unit added in v3.2.0

func (r Register) Unit() string

Jump to

Keyboard shortcuts

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