38#ifndef PROTOCORE_WEB_TERMINAL_H
39#define PROTOCORE_WEB_TERMINAL_H
44#if PC_ENABLE_WEB_TERMINAL
51typedef void (*
TermCommandCb)(
const char *line, uint8_t client_id);
62void pc_web_terminal_begin(
PC &server,
const char *path =
"/terminal");
68void pc_web_terminal_print(
const char *s);
71void pc_web_terminal_println(
const char *s);
79void pc_web_terminal_frame(
const pc_field *spec, ...);
82uint8_t pc_web_terminal_client_count();
87static inline void pc_web_terminal_begin(
PC &,
const char * =
"/terminal")
93static inline void pc_web_terminal_print(
const char *)
96static inline void pc_web_terminal_println(
const char *)
99static inline void pc_web_terminal_frame(
const pc_field *, ...)
102static inline uint8_t pc_web_terminal_client_count()
Single-port HTTP server with deterministic, zero-allocation execution.
Declarative frame builder: a frame is a static table of typed fields, built by one engine.
Layer 7 (Application) - public HTTP routing API.
One field of a frame. Frames are static const pc_field[], so they live in rodata.
void(* TermCommandCb)(const char *line, uint8_t client_id)