#include <scheduler.h>
|
void | set_timeout (Component *component, const std::string &name, uint32_t timeout, std::function< void()> func) |
|
bool | cancel_timeout (Component *component, const std::string &name) |
|
void | set_interval (Component *component, const std::string &name, uint32_t interval, std::function< void()> func) |
|
bool | cancel_interval (Component *component, const std::string &name) |
|
void | set_retry (Component *component, const std::string &name, uint32_t initial_wait_time, uint8_t max_attempts, std::function< RetryResult(uint8_t)> func, float backoff_increase_factor=1.0f) |
|
bool | cancel_retry (Component *component, const std::string &name) |
|
optional< uint32_t > | next_schedule_in () |
|
void | call () |
|
void | process_to_add () |
|
Definition at line 13 of file scheduler.h.
◆ call()
void HOT esphome::Scheduler::call |
( |
| ) |
|
◆ cancel_interval()
bool HOT esphome::Scheduler::cancel_interval |
( |
Component * |
component, |
|
|
const std::string & |
name |
|
) |
| |
◆ cancel_item_()
◆ cancel_retry()
bool HOT esphome::Scheduler::cancel_retry |
( |
Component * |
component, |
|
|
const std::string & |
name |
|
) |
| |
◆ cancel_timeout()
bool HOT esphome::Scheduler::cancel_timeout |
( |
Component * |
component, |
|
|
const std::string & |
name |
|
) |
| |
◆ cleanup_()
void HOT esphome::Scheduler::cleanup_ |
( |
| ) |
|
|
protected |
◆ empty_()
bool esphome::Scheduler::empty_ |
( |
| ) |
|
|
inlineprotected |
◆ millis_()
uint32_t esphome::Scheduler::millis_ |
( |
| ) |
|
|
protected |
◆ next_schedule_in()
optional< uint32_t > HOT esphome::Scheduler::next_schedule_in |
( |
| ) |
|
◆ pop_raw_()
void HOT esphome::Scheduler::pop_raw_ |
( |
| ) |
|
|
protected |
◆ process_to_add()
void HOT esphome::Scheduler::process_to_add |
( |
| ) |
|
◆ push_()
void HOT esphome::Scheduler::push_ |
( |
std::unique_ptr< SchedulerItem > |
item | ) |
|
|
protected |
◆ set_interval()
void HOT esphome::Scheduler::set_interval |
( |
Component * |
component, |
|
|
const std::string & |
name, |
|
|
uint32_t |
interval, |
|
|
std::function< void()> |
func |
|
) |
| |
◆ set_retry()
void HOT esphome::Scheduler::set_retry |
( |
Component * |
component, |
|
|
const std::string & |
name, |
|
|
uint32_t |
initial_wait_time, |
|
|
uint8_t |
max_attempts, |
|
|
std::function< RetryResult(uint8_t)> |
func, |
|
|
float |
backoff_increase_factor = 1.0f |
|
) |
| |
◆ set_timeout()
void HOT esphome::Scheduler::set_timeout |
( |
Component * |
component, |
|
|
const std::string & |
name, |
|
|
uint32_t |
timeout, |
|
|
std::function< void()> |
func |
|
) |
| |
◆ items_
std::vector<std::unique_ptr<SchedulerItem> > esphome::Scheduler::items_ |
|
protected |
◆ last_millis_
uint32_t esphome::Scheduler::last_millis_ {0} |
|
protected |
◆ lock_
Mutex esphome::Scheduler::lock_ |
|
protected |
◆ millis_major_
uint8_t esphome::Scheduler::millis_major_ {0} |
|
protected |
◆ to_add_
std::vector<std::unique_ptr<SchedulerItem> > esphome::Scheduler::to_add_ |
|
protected |
◆ to_remove_
uint32_t esphome::Scheduler::to_remove_ {0} |
|
protected |
The documentation for this class was generated from the following files: