mirror of
https://github.com/esphome/esphome.git
synced 2026-08-22 22:26:21 +00:00
Show the effective TCP send buffer in the config dump
This commit is contained in:
@@ -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; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user