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:
@@ -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_;
|
||||
|
||||
1
tests/components/web_server/test_v1.esp32-idf.yaml
Normal file
1
tests/components/web_server/test_v1.esp32-idf.yaml
Normal file
@@ -0,0 +1 @@
|
||||
<<: !include common_v1.yaml
|
||||
Reference in New Issue
Block a user