1
0
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:
J. Nick Koston
2025-11-01 12:41:22 -05:00
parent f502907c7a
commit 2f56af0078

View File

@@ -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)));