ESPHome  2025.3.3
Data Structures | Public Member Functions | Protected Member Functions | Protected Attributes
esphome::web_server::DeferredUpdateEventSource Class Reference

#include <web_server.h>

Inheritance diagram for esphome::web_server::DeferredUpdateEventSource:

Public Member Functions

 DeferredUpdateEventSource (WebServer *ws, const String &url)
 
void loop ()
 
void deferrable_send_state (void *source, const char *event_type, message_generator_t *message_generator)
 
void try_send_nodefer (const char *message, const char *event=nullptr, uint32_t id=0, uint32_t reconnect=0)
 

Protected Member Functions

void deq_push_back_with_dedup_ (void *source, message_generator_t *message_generator)
 
void process_deferred_queue_ ()
 

Protected Attributes

ListEntitiesIterator entities_iterator_
 
std::vector< DeferredEventdeferred_queue_
 
WebServerweb_server_
 

Detailed Description

Definition at line 73 of file web_server.h.

Constructor & Destructor Documentation

◆ DeferredUpdateEventSource()

esphome::web_server::DeferredUpdateEventSource::DeferredUpdateEventSource ( WebServer ws,
const String &  url 
)
inline

Definition at line 116 of file web_server.h.

Member Function Documentation

◆ deferrable_send_state()

void esphome::web_server::DeferredUpdateEventSource::deferrable_send_state ( void *  source,
const char *  event_type,
message_generator_t message_generator 
)

Definition at line 109 of file web_server.cpp.

◆ deq_push_back_with_dedup_()

void esphome::web_server::DeferredUpdateEventSource::deq_push_back_with_dedup_ ( void *  source,
message_generator_t message_generator 
)
protected

Definition at line 77 of file web_server.cpp.

◆ loop()

void esphome::web_server::DeferredUpdateEventSource::loop ( )

Definition at line 103 of file web_server.cpp.

◆ process_deferred_queue_()

void esphome::web_server::DeferredUpdateEventSource::process_deferred_queue_ ( )
protected

Definition at line 90 of file web_server.cpp.

◆ try_send_nodefer()

void esphome::web_server::DeferredUpdateEventSource::try_send_nodefer ( const char *  message,
const char *  event = nullptr,
uint32_t  id = 0,
uint32_t  reconnect = 0 
)

Definition at line 141 of file web_server.cpp.

Field Documentation

◆ deferred_queue_

std::vector<DeferredEvent> esphome::web_server::DeferredUpdateEventSource::deferred_queue_
protected

Definition at line 107 of file web_server.h.

◆ entities_iterator_

ListEntitiesIterator esphome::web_server::DeferredUpdateEventSource::entities_iterator_
protected

Definition at line 104 of file web_server.h.

◆ web_server_

WebServer* esphome::web_server::DeferredUpdateEventSource::web_server_
protected

Definition at line 108 of file web_server.h.


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