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)
Click to show internal directories.
Click to hide internal directories.