smartboiler

package
v0.0.0-...-52be9fe Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SmartBoiler

type SmartBoiler struct {
	TemperatureItem      *item.AnItem
	CurrentItem          *item.AnItem
	InstantFlowMeterItem *item.AnItem
	SessionFlowMeterItem *item.AnItem
	SessionFlowPriceItem *item.AnItem
	RelayStateItem       *item.AnItem
	RelayModeItem        item.Item
	ForceRelayStateItem  item.Item
	// contains filtered or unexported fields
}

SmartBoiler Object

func NewSmartBoiler

func NewSmartBoiler(id string, label string, conn *hmqtt.MQTTConn, pubTopic string, subTopic string) *SmartBoiler

NewSmartBoiler creates a new SmartBoiler Object, publishing and subscribing to the given broker/topic

func (*SmartBoiler) OnMessage

func (s *SmartBoiler) OnMessage(client mqtt.Client, msg mqtt.Message)

func (*SmartBoiler) OnValueChange

func (s *SmartBoiler) OnValueChange(it item.Item, old string, new string)

Jump to

Keyboard shortcuts

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