Show the effective TCP send buffer in the config dump

This commit is contained in:
J. Nick Koston
2026-08-21 18:07:28 -05:00
parent b2fd7ef7ac
commit e9f9a9f33e
2 changed files with 11 additions and 0 deletions
@@ -6,6 +6,7 @@
#include "esp_err.h"
#include "esp_netif.h"
#include "esp_event.h"
#include "lwip/opt.h"
#ifdef USE_NETWORK_DEFAULT_ROUTE
#include "esphome/core/application.h"
@@ -43,6 +44,15 @@ void NetworkComponent::setup() {
}
}
void NetworkComponent::dump_config() {
// The effective compile-time lwIP value, so the log reflects tcp_send_buffer
// or the high performance bundle when either changed it.
ESP_LOGCONFIG(TAG,
"Network:\n"
" TCP send buffer: %d bytes",
TCP_SND_BUF);
}
#ifdef USE_NETWORK_DEFAULT_ROUTE
static esp_netif_t *connected_wifi_netif() {
#ifdef USE_WIFI
@@ -13,6 +13,7 @@ namespace esphome::network {
class NetworkComponent final : public Component {
public:
void setup() override;
void dump_config() override;
// AFTER_BLUETOOTH: BLE controller must initialize before esp_netif_init per IDF guidance.
float get_setup_priority() const override { return setup_priority::AFTER_BLUETOOTH; }