1#ifndef SENSESP_TRANSFORMS_PRESS_REPEATER_H_
2#define SENSESP_TRANSFORMS_PRESS_REPEATER_H_
4#include <elapsedMillis.h>
45 PressRepeater(
const String& config_path =
"",
int integer_false = 0,
46 int repeat_start_interval = 1500,
int repeat_interval = 250);
48 virtual void set(
const bool& new_value)
override;
50 virtual bool to_json(JsonObject& root)
override;
51 virtual bool from_json(
const JsonObject& config)
override;
A transform that takes boolean inputs and adds button behaviors familiar to many device end users....
virtual bool from_json(const JsonObject &config) override
PressRepeater(const String &config_path="", int integer_false=0, int repeat_start_interval=1500, int repeat_interval=250)
int repeat_start_interval_
elapsedMillis last_value_sent_
virtual bool to_json(JsonObject &root) override
virtual void set(const bool &new_value) override
const String ConfigSchema(const SmartSwitchController &obj)