Reduce API component memory usage with conditional compilation (#9262)

This commit is contained in:
J. Nick Koston authored and GitHub committed 2025-06-30 15:33:35 +12:00
1 parent 7f8dd4b254
commit 6a354d7c94
7 files changed
+338 -17

No files matched your search

+2
View File
@@ -184,7 +184,9 @@ void APIServer::loop() {
}
// Rare case: handle disconnection
#ifdef USE_API_CLIENT_DISCONNECTED_TRIGGER
this->client_disconnected_trigger_->trigger(client->client_info_, client->client_peername_);
#endif
ESP_LOGV(TAG, "Remove connection %s", client->client_info_.c_str());
// Swap with the last element and pop (avoids expensive vector shifts)