ESPHome
2024.11.3
|
Simple skip filter. More...
#include <filter.h>
Public Member Functions | |
SkipInitialFilter (size_t num_to_ignore) | |
Construct a SkipInitialFilter. More... | |
optional< float > | new_value (float value) override |
Public Member Functions inherited from esphome::sensor::Filter | |
virtual void | initialize (Sensor *parent, Filter *next) |
Initialize this filter, please note this can be called more than once. More... | |
void | input (float value) |
void | output (float value) |
Protected Attributes | |
size_t | num_to_ignore_ |
Protected Attributes inherited from esphome::sensor::Filter | |
friend | Sensor |
Filter * | next_ {nullptr} |
Sensor * | parent_ {nullptr} |
Simple skip filter.
Skips the first N values, then passes everything else.
|
explicit |
Construct a SkipInitialFilter.
num_to_ignore | How many values to ignore before the filter becomes a no-op. |
Definition at line 78 of file filter.cpp.
|
overridevirtual |
Implements esphome::sensor::Filter.
Definition at line 79 of file filter.cpp.
|
protected |