Files
ESP32_ZACUS/ui_freenove_allinone/include/app/runtime_serial_service.h
T
Isaac db7083845b Initial commit: Freenove ESP32-S3 UI + story engine from le-mystere-professeur-zacus
- Sources: ui_freenove_allinone/ (LovyanGFX + LVGL rendering)
- Libraries: story engine, hardware managers, audio codec drivers
- PlatformIO: freenove_esp32s3_full_with_ui environment
- Status: Ready for optimization work

Date: 2026-03-01
2026-03-01 20:08:00 +01:00

19 lines
763 B
C++

// runtime_serial_service.h - dispatch bridge for serial + control actions.
#pragma once
#include <Arduino.h>
class RuntimeSerialService {
public:
using HandleSerialCommandFn = void (*)(const char* command_line, uint32_t now_ms);
using DispatchControlActionFn = bool (*)(const String& action_raw, uint32_t now_ms, String* out_error);
void configure(HandleSerialCommandFn handle_serial_command, DispatchControlActionFn dispatch_control_action);
void handleSerialCommand(const char* command_line, uint32_t now_ms) const;
bool dispatchControlAction(const String& action_raw, uint32_t now_ms, String* out_error) const;
private:
HandleSerialCommandFn handle_serial_command_ = nullptr;
DispatchControlActionFn dispatch_control_action_ = nullptr;
};