mirror of
https://github.com/esphome/esphome.git
synced 2025-11-17 07:15:48 +00:00
[web_server_idf] Reduce flash by eliminating temporary string allocations in event formatting
This commit is contained in:
@@ -77,7 +77,7 @@ class AsyncResponseStream : public AsyncWebServerResponse {
|
||||
size_t get_content_size() const override { return this->content_.size(); };
|
||||
|
||||
void print(const char *str) { this->content_.append(str); }
|
||||
void print(const std::string &str) { this->content_.append(str.c_str(), str.size()); }
|
||||
void print(const std::string &str) { this->content_.append(str); }
|
||||
void print(float value);
|
||||
void printf(const char *fmt, ...) __attribute__((format(printf, 2, 3)));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user