ProtoCore v0.0.2
Deterministic, zero-heap network stack for embedded targets
Loading...
Searching...
No Matches
dashboard.h File Reference

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

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

Go to the source code of this file.

Detailed Description

Real-time SVG telemetry dashboard (PC_ENABLE_DASHBOARD).

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

  • GET path the self-contained SVG dashboard page (from web);
  • 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 pc_dashboard_set(key, value) and pushes them with pc_dashboard_publish().

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

Author
Douglas Quigg (dstroy0)
Date
2026

Definition in file dashboard.h.