SensESP 3.0.1
Universal Signal K sensor toolkit ESP32
Loading...
Searching...
No Matches
change_filter.h
Go to the documentation of this file.
1#ifndef SENSESP_TRANSFORMS_CHANGE_FILTER_H_
2#define SENSESP_TRANSFORMS_CHANGE_FILTER_H_
3
5#include "transform.h"
6
7namespace sensesp {
8
35 public:
36 ChangeFilter(float min_delta = 0.0, float max_delta = 9999.0,
37 int max_skips = 99, const String& config_path = "");
38
39 virtual void set(const float& new_value) override;
40 virtual bool to_json(JsonObject& root) override;
41 virtual bool from_json(const JsonObject& config) override;
42
43 protected:
47 int skips_;
48};
49
50const String ConfigSchema(ChangeFilter& obj);
51} // namespace sensesp
52
53#endif
A float passthrough transform that will only pass that value through if it is "sufficiently different...
virtual bool from_json(const JsonObject &config) override
virtual void set(const float &new_value) override
ChangeFilter(float min_delta=0.0, float max_delta=9999.0, int max_skips=99, const String &config_path="")
virtual bool to_json(JsonObject &root) override
const String ConfigSchema(const SmartSwitchController &obj)