mqttDevice

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 {
	Kind() types.MqttDeviceKind
	MqttClientTopics() map[string][]string
}

type DeviceStruct

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

func NewDevice

func NewDevice(
	deviceConfig device.Config,
	mqttConfig Config,
	stateStorage *dataflow.ValueStorage,
	commandStorage *dataflow.ValueStorage,
	mqttClientPool *pool.Pool[mqttClient.Client],
) *DeviceStruct

func (*DeviceStruct) Model

func (c *DeviceStruct) Model() string

func (*DeviceStruct) Run

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

type StructRegister

type StructRegister struct {
	mqttForwarders.StructRegister
}

func (StructRegister) Category

func (s StructRegister) Category() string

func (StructRegister) Description

func (s StructRegister) Description() string

func (StructRegister) Enum

func (s StructRegister) Enum() map[int]string

func (StructRegister) Name

func (s StructRegister) Name() string

func (StructRegister) RegisterType

func (s StructRegister) RegisterType() dataflow.RegisterType

func (StructRegister) Sort

func (s StructRegister) Sort() int

func (StructRegister) Unit

func (s StructRegister) Unit() string

func (StructRegister) Writable added in v3.2.0

func (s StructRegister) Writable() bool

Jump to

Keyboard shortcuts

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