5#ifdef USE_DATETIME_DATE
19 template<
typename F>
void set_template(F &&f) { this->
f_.set(std::forward<F>(f)); }
21 void setup()
override;
This class simplifies creating components that periodically check a state.
Lightweight wrapper for template platform lambdas (stateless function pointers only).
void dump_config() override
void set_restore_value(bool restore_value)
ESPPreferenceObject pref_
Trigger< ESPTime > * set_trigger_
float get_setup_priority() const override
void set_initial_value(ESPTime initial_value)
TemplateLambda< ESPTime > f_
void control(const datetime::DateCall &call) override
Trigger< ESPTime > * get_set_trigger() const
void set_optimistic(bool optimistic)
const float HARDWARE
For components that deal with hardware and are very important like GPIO switch.
Providing packet encoding functions for exchanging data with a remote host.
A more user-friendly version of struct tm from time.h.