ESPHome 2025.8.0b1
Loading...
Searching...
No Matches
esphome::espnow::SendAction< Ts > Class Template Reference

#include <automation.h>

Inheritance diagram for esphome::espnow::SendAction< Ts >:
esphome::Action< Ts... > esphome::Parented< ESPNowComponent >

Public Member Functions

void add_on_sent (const std::vector< Action< Ts... > * > &actions)
 
void add_on_error (const std::vector< Action< Ts... > * > &actions)
 
void set_wait_for_sent (bool wait_for_sent)
 
void set_continue_on_error (bool continue_on_error)
 
void play_complex (Ts... x) override
 
void play (Ts... x) override
 
void stop () override
 
- Public Member Functions inherited from esphome::Action< Ts... >
virtual void stop_complex ()
 
virtual bool is_running ()
 Check if this or any of the following actions are currently running.
 
int num_running_total ()
 The total number of actions that are currently running in this plus any of the following actions in the chain.
 
- Public Member Functions inherited from esphome::Parented< ESPNowComponent >
 Parented ()
 
 Parented (ESPNowComponent *parent)
 
ESPNowComponent * get_parent () const
 Get the parent of this object.
 
void set_parent (ESPNowComponent *parent)
 Set the parent of this object.
 

Protected Attributes

ActionList< Ts... > sent_
 
ActionList< Ts... > error_
 
struct { 
 
   uint8_t   wait_for_sent: 1 
 
   uint8_t   continue_on_error: 1 
 
   uint8_t   reserved: 6 
 
flags_ 
 
- Protected Attributes inherited from esphome::Action< Ts... >
friend ActionList< Ts... >
 
Action< Ts... > * next_
 
int num_running_
 The number of instances of this sequence in the list of actions that is currently being executed.
 
- Protected Attributes inherited from esphome::Parented< ESPNowComponent >
ESPNowComponent * parent_
 

Additional Inherited Members

- Protected Member Functions inherited from esphome::Action< Ts... >
void play_next_ (Ts... x)
 
void play_next_tuple_ (const std::tuple< Ts... > &tuple, seq< S... >)
 
void play_next_tuple_ (const std::tuple< Ts... > &tuple)
 
void stop_next_ ()
 
bool is_running_next_ ()
 

Detailed Description

template<typename... Ts>
class esphome::espnow::SendAction< Ts >

Definition at line 12 of file automation.h.

Member Function Documentation

◆ add_on_error()

template<typename... Ts>
void esphome::espnow::SendAction< Ts >::add_on_error ( const std::vector< Action< Ts... > * > & actions)
inline

Definition at line 23 of file automation.h.

◆ add_on_sent()

template<typename... Ts>
void esphome::espnow::SendAction< Ts >::add_on_sent ( const std::vector< Action< Ts... > * > & actions)
inline

Definition at line 17 of file automation.h.

◆ play()

template<typename... Ts>
void esphome::espnow::SendAction< Ts >::play ( Ts... x)
inlineoverridevirtual

Implements esphome::Action< Ts... >.

Definition at line 70 of file automation.h.

◆ play_complex()

template<typename... Ts>
void esphome::espnow::SendAction< Ts >::play_complex ( Ts... x)
inlineoverridevirtual

Reimplemented from esphome::Action< Ts... >.

Definition at line 39 of file automation.h.

◆ set_continue_on_error()

template<typename... Ts>
void esphome::espnow::SendAction< Ts >::set_continue_on_error ( bool continue_on_error)
inline

Definition at line 37 of file automation.h.

◆ set_wait_for_sent()

template<typename... Ts>
void esphome::espnow::SendAction< Ts >::set_wait_for_sent ( bool wait_for_sent)
inline

Definition at line 36 of file automation.h.

◆ stop()

template<typename... Ts>
void esphome::espnow::SendAction< Ts >::stop ( )
inlineoverridevirtual

Reimplemented from esphome::Action< Ts... >.

Definition at line 73 of file automation.h.

Field Documentation

◆ continue_on_error

template<typename... Ts>
uint8_t esphome::espnow::SendAction< Ts >::continue_on_error

Definition at line 84 of file automation.h.

◆ error_

template<typename... Ts>
ActionList<Ts...> esphome::espnow::SendAction< Ts >::error_
protected

Definition at line 80 of file automation.h.

◆ [struct]

struct { ... } esphome::espnow::SendAction< Ts >::flags_

◆ reserved

template<typename... Ts>
uint8_t esphome::espnow::SendAction< Ts >::reserved

Definition at line 85 of file automation.h.

◆ sent_

template<typename... Ts>
ActionList<Ts...> esphome::espnow::SendAction< Ts >::sent_
protected

Definition at line 79 of file automation.h.

◆ wait_for_sent

template<typename... Ts>
uint8_t esphome::espnow::SendAction< Ts >::wait_for_sent

Definition at line 83 of file automation.h.


The documentation for this class was generated from the following file: