ESPHome  2024.11.1
Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes
esphome::web_server_idf::AsyncEventSourceResponse Class Reference

#include <web_server_idf.h>

Public Member Functions

void send (const char *message, const char *event=nullptr, uint32_t id=0, uint32_t reconnect=0)
 

Protected Member Functions

 AsyncEventSourceResponse (const AsyncWebServerRequest *request, AsyncEventSource *server)
 

Static Protected Member Functions

static void destroy (void *p)
 

Protected Attributes

AsyncEventSourceserver_
 
httpd_handle_t hd_ {}
 
int fd_ {}
 

Detailed Description

Definition at line 219 of file web_server_idf.h.

Constructor & Destructor Documentation

◆ AsyncEventSourceResponse()

esphome::web_server_idf::AsyncEventSourceResponse::AsyncEventSourceResponse ( const AsyncWebServerRequest request,
AsyncEventSource server 
)
protected

Definition at line 292 of file web_server_idf.cpp.

Member Function Documentation

◆ destroy()

void esphome::web_server_idf::AsyncEventSourceResponse::destroy ( void *  p)
staticprotected

Definition at line 314 of file web_server_idf.cpp.

◆ send()

void esphome::web_server_idf::AsyncEventSourceResponse::send ( const char *  message,
const char *  event = nullptr,
uint32_t  id = 0,
uint32_t  reconnect = 0 
)

Definition at line 320 of file web_server_idf.cpp.

Field Documentation

◆ fd_

int esphome::web_server_idf::AsyncEventSourceResponse::fd_ {}
protected

Definition at line 230 of file web_server_idf.h.

◆ hd_

httpd_handle_t esphome::web_server_idf::AsyncEventSourceResponse::hd_ {}
protected

Definition at line 229 of file web_server_idf.h.

◆ server_

AsyncEventSource* esphome::web_server_idf::AsyncEventSourceResponse::server_
protected

Definition at line 228 of file web_server_idf.h.


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