Skip to main content

Statistics

Concept Diagram

ESP-DASH has a dedicated page called "Statistics" on the dashboard which contain key-value pairs of system statistics ( heap, flash usage etc. ) by default. With the launch of ESP-DASH V4, user defined statistics are now also part of the library! You can now add your own statitics to this page. 🎉

Note: System statistics can be turned off any time, you may look at Disable Statistics page.

Example​

Initializer:​
Statistic stat1(&dashboard, "Key", "Value");
Update Value:​
stat1.set("New Value");
Update both Key & Value:​
stat1.set("New Key", "New Value");