OpenWB: fix heartbeat topic

This commit is contained in:
andig 2022-01-21 18:42:06 +01:00
parent be934d546c
commit 4ff334d03f

View file

@ -125,7 +125,7 @@ func NewOpenWB(log *util.Logger, mqttconf mqtt.Config, id int, topic string, p1p
// heartbeat
go func() {
heartbeatS := provider.NewMqtt(log, client,
fmt.Sprintf("%s/set/lp%d/%s", topic, id, openwb.SlaveHeartbeatTopic),
fmt.Sprintf("%s/set/isss/%s", topic, openwb.SlaveHeartbeatTopic),
1, timeout).IntSetter("heartbeat")
for range time.NewTicker(openwb.HeartbeatInterval).C {