mirror of
https://github.com/esphome/esphome.git
synced 2026-09-22 04:28:43 +00:00
[web_server] Fix v1 compilation on ESP-IDF by adding missing write method
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(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_;
|
||||
|
||||
Reference in New Issue
Block a user