1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-17 18:52:19 +01:00

[api] Optimize HelloResponse server_info to reduce memory usage

This commit is contained in:
J. Nick Koston
2025-09-13 17:16:14 -05:00
parent 51c943d21e
commit 38ef33fe5a

View File

@@ -42,7 +42,6 @@ static constexpr uint8_t MAX_PING_RETRIES = 60;
static constexpr uint16_t PING_RETRY_INTERVAL = 1000;
static constexpr uint32_t KEEPALIVE_DISCONNECT_TIMEOUT = (KEEPALIVE_TIMEOUT_MS * 5) / 2;
// Compile-time StringRef constant for ESPHome version
static constexpr auto ESPHOME_VERSION_REF = StringRef::from_lit(ESPHOME_VERSION);
static const char *const TAG = "api.connection";