mirror of
https://github.com/lumapu/ahoy.git
synced 2025-05-04 04:35:55 +02:00
Ignore "exp_aft" for yieldtotal and yieldday.
This commit is contained in:
parent
bd8de5f8f9
commit
a37a9d4cc0
1 changed files with 2 additions and 1 deletions
|
@ -275,7 +275,8 @@ class PubMqtt {
|
|||
doc2[F("unit_of_meas")] = ((!total) ? (iv->getUnit(i,rec)) : (unitTotal[i]));
|
||||
doc2[F("uniq_id")] = ((!total) ? (String(iv->config->serial.u64, HEX)) : (node_id)) + "_" + uniq_id;
|
||||
doc2[F("dev")] = deviceObj;
|
||||
doc2[F("exp_aft")] = MQTT_INTERVAL + 5; // add 5 sec if connection is bad or ESP too slow @TODO: stimmt das wirklich als expire!?
|
||||
if (!(total && String(stateCls) == String("total_increasing")))
|
||||
doc2[F("exp_aft")] = MQTT_INTERVAL + 5; // add 5 sec if connection is bad or ESP too slow @TODO: stimmt das wirklich als expire!?
|
||||
if (devCls != NULL)
|
||||
doc2[F("dev_cla")] = String(devCls);
|
||||
if (stateCls != NULL)
|
||||
|
|
Loading…
Add table
Reference in a new issue