Openwb: fix invalid timeout errors
This commit is contained in:
parent
1ba175bd5c
commit
08b52d60a1
1 changed files with 2 additions and 2 deletions
|
|
@ -63,7 +63,7 @@ func NewOpenWB(log *util.Logger, mqttconf mqtt.Config, id int, topic string, p1p
|
|||
|
||||
// getters
|
||||
boolG := func(topic string) func() (bool, error) {
|
||||
g := provider.NewMqtt(log, client, topic, 1, timeout).BoolGetter()
|
||||
g := provider.NewMqtt(log, client, topic, 1, 0).BoolGetter()
|
||||
return func() (val bool, err error) {
|
||||
if val, err = g(); err == nil {
|
||||
_, err = timer()
|
||||
|
|
@ -73,7 +73,7 @@ func NewOpenWB(log *util.Logger, mqttconf mqtt.Config, id int, topic string, p1p
|
|||
}
|
||||
|
||||
floatG := func(topic string) func() (float64, error) {
|
||||
g := provider.NewMqtt(log, client, topic, 1, timeout).FloatGetter()
|
||||
g := provider.NewMqtt(log, client, topic, 1, 0).FloatGetter()
|
||||
return func() (val float64, err error) {
|
||||
if val, err = g(); err == nil {
|
||||
_, err = timer()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue