mirror of
https://github.com/esphome/esphome.git
synced 2026-06-02 03:02:19 +08:00
[web_server] Fix v1 compilation on ESP-IDF by adding missing write method (#13153)
This commit is contained in:
@@ -80,6 +80,7 @@ class AsyncResponseStream : public AsyncWebServerResponse {
|
|||||||
void print(const std::string &str) { this->content_.append(str); }
|
void print(const std::string &str) { this->content_.append(str); }
|
||||||
void print(float value);
|
void print(float value);
|
||||||
void printf(const char *fmt, ...) __attribute__((format(printf, 2, 3)));
|
void printf(const char *fmt, ...) __attribute__((format(printf, 2, 3)));
|
||||||
|
void write(uint8_t c) { this->content_.push_back(static_cast<char>(c)); }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
std::string content_;
|
std::string content_;
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
<<: !include common_v1.yaml
|
||||||
Reference in New Issue
Block a user