Anniversary Sale · up to 80% off all librariesEnds Nov 9Shop now
SOFTTDocs
Features
You are reading the documentation for ESP-DASH v4.x.x, which is no longer the latest release. View the v5.x.x documentation.

Custom URI

Serve the ESP-DASH v4 dashboard at a custom path instead of the root of the web server.

By default, ESP-DASH serves the dashboard at the root path of the web server (http://<device-ip>/). To serve it at a different path, pass the URI as the second argument of the ESPDash constructor.

Usage

ESPDash dashboard(&server, "/dash");

The dashboard is then available at http://<device-ip>/dash.

Constructor

ESPDash(AsyncWebServer* server, const char* uri, bool enable_default_stats = true);

Prop

Type

To disable the built-in system statistics while using a custom URI, see Disable Statistics.

On this page