DeterministicESPAsyncWebServer v6.28.0
Zero-allocation, bounded-execution async HTTP server for ESP32
Loading...
Searching...
No Matches
dashboard.h File Reference

Real-time SVG telemetry dashboard (DETWS_ENABLE_DASHBOARD). More...

#include "ServerConfig.h"
#include <stddef.h>
#include <stdint.h>

Go to the source code of this file.

Detailed Description

Real-time SVG telemetry dashboard (DETWS_ENABLE_DASHBOARD).

Widgets are declared once in a fixed compile-time DetwsWidget table - no heap, fixed at link. detws_dashboard_begin() serves three things at path:

  • GET path the self-contained SVG dashboard page (from web_assets);
  • GET path/layout the widget table serialized as a JSON array;
  • SSE path/stream a live stream of the current values. The page fetches the layout, renders one SVG widget per entry, and updates them from the SSE value stream. The application feeds readings with detws_dashboard_set(key, value) and pushes them with detws_dashboard_publish().

The widget-table -> JSON serializers (layout + values) are pure and have no server dependency, so they unit-test on the host. Requires DETWS_ENABLE_SSE.

Author
Douglas Quigg (dstroy0)
Date
2026

Definition in file dashboard.h.