|
ProtoCore v1.0.16
Deterministic, zero-heap network stack for embedded targets
|
Browser "web serial" terminal over WebSocket (PROTOCORE_ENABLE_WEB_TERMINAL). More...
#include "protocore_config.h"Go to the source code of this file.
Browser "web serial" terminal over WebSocket (PROTOCORE_ENABLE_WEB_TERMINAL).
A zero-heap equivalent of the WebSerial-style remote serial monitor: it serves a self-contained terminal web page and a WebSocket endpoint on the same path. Device output is broadcast to every connected browser; each line a browser sends is delivered to a command callback. Rides the library's existing WebSocket layer (no extra connection state), so it is TLS-agnostic - the page auto-selects ws:// or wss:// from the page's own scheme.
A line is built with the frame engine and handed over as text, so the shape is a static const mmgr_field[] in rodata rather than a format string parsed per call.
No-op stubs when PROTOCORE_ENABLE_WEB_TERMINAL is 0.
Definition in file web_terminal.h.