-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
In the weather station mrk1 there is a possibility to reset the (elapsed) values after it has been send. Example in the MQTT part:
data["rain"] = rs.getRainAmount(true) * hourMs / Settings.mqtttxintervall ; and the RainSensor.cpp : float RainSensor::getRainAmount(bool clearVars) { float temp = rainAmount; if (clearVars) rainAmount = 0; lastClear=millis(); return temp; will empty the rainAmount to 0 after it has been
When information is published to something which is time driven, the information to be spublished is what's collected in the elapsed time, after it has been published the buffer can be cleared, now it is also possible the buffer is cleared (time elapsed) before it has been published.
Metadata
Metadata
Assignees
Labels
No labels