Anniversary Sale · up to 80% off all librariesEnds Nov 9Shop now
SOFTTDocs
Security

Disable Statistics

Disable the built-in system statistics in ESP-DASH v5 and hide the Statistics tab from the sidebar.

ESP-DASH displays system statistics (Hardware, SDK Version, Free Heap (SRAM), WiFi Mode and WiFi Signal) on the Statistics page by default. To disable them, pass false as the last argument of the ESPDash constructor.

Disable system statistics

If you serve the dashboard at the default URI, pass false as the second argument:

ESPDash dashboard(server, false);

If you use a custom URI, pass false as the third argument:

ESPDash dashboard(server, "/", false);

Hide the Statistics tab

When system statistics are disabled and the sketch defines no custom statistics, the dashboard hides the Statistics tab from the sidebar automatically.

On this page