1
0
mirror of https://github.com/esphome/esphome.git synced 2026-02-08 08:41:59 +00:00

[web_server] Fix v1 compilation on ESP-IDF by adding missing write method (#13153)

This commit is contained in:
J. Nick Koston
2026-01-11 17:17:07 -10:00
committed by GitHub
parent 742d724e65
commit 68064dc974
2 changed files with 2 additions and 0 deletions

View File

@@ -80,6 +80,7 @@ class AsyncResponseStream : public AsyncWebServerResponse {
void print(const std::string &str) { this->content_.append(str); }
void print(float value);
void printf(const char *fmt, ...) __attribute__((format(printf, 2, 3)));
void write(uint8_t c) { this->content_.push_back(static_cast<char>(c)); }
protected:
std::string content_;

View File

@@ -0,0 +1 @@
<<: !include common_v1.yaml