Skip to content

Buffer clear after published? #13

@Pakl8

Description

@Pakl8

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions