ESPHome  2024.10.2
Public Member Functions | Protected Attributes
esphome::web_server_base::OTARequestHandler Class Reference

#include <web_server_base.h>

Inheritance diagram for esphome::web_server_base::OTARequestHandler:

Public Member Functions

 OTARequestHandler (WebServerBase *parent)
 
void handleRequest (AsyncWebServerRequest *request) override
 
void handleUpload (AsyncWebServerRequest *request, const String &filename, size_t index, uint8_t *data, size_t len, bool final) override
 
bool canHandle (AsyncWebServerRequest *request) override
 
bool isRequestHandlerTrivial () override
 

Protected Attributes

uint32_t last_ota_progress_ {0}
 
uint32_t ota_read_length_ {0}
 
WebServerBaseparent_
 

Detailed Description

Definition at line 128 of file web_server_base.h.

Constructor & Destructor Documentation

◆ OTARequestHandler()

esphome::web_server_base::OTARequestHandler::OTARequestHandler ( WebServerBase parent)
inline

Definition at line 130 of file web_server_base.h.

Member Function Documentation

◆ canHandle()

bool esphome::web_server_base::OTARequestHandler::canHandle ( AsyncWebServerRequest *  request)
inlineoverride

Definition at line 134 of file web_server_base.h.

◆ handleRequest()

void esphome::web_server_base::OTARequestHandler::handleRequest ( AsyncWebServerRequest *  request)
override

Definition at line 97 of file web_server_base.cpp.

◆ handleUpload()

void esphome::web_server_base::OTARequestHandler::handleUpload ( AsyncWebServerRequest *  request,
const String &  filename,
size_t  index,
uint8_t *  data,
size_t  len,
bool  final 
)
override

Definition at line 42 of file web_server_base.cpp.

◆ isRequestHandlerTrivial()

bool esphome::web_server_base::OTARequestHandler::isRequestHandlerTrivial ( )
inlineoverride

Definition at line 139 of file web_server_base.h.

Field Documentation

◆ last_ota_progress_

uint32_t esphome::web_server_base::OTARequestHandler::last_ota_progress_ {0}
protected

Definition at line 142 of file web_server_base.h.

◆ ota_read_length_

uint32_t esphome::web_server_base::OTARequestHandler::ota_read_length_ {0}
protected

Definition at line 143 of file web_server_base.h.

◆ parent_

WebServerBase* esphome::web_server_base::OTARequestHandler::parent_
protected

Definition at line 144 of file web_server_base.h.


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