Commit Graph
1 Commits
Author SHA1 Message Date
bonaminandClaude Sonnet 4.6 f6107e2cfe feat(comms): Stage 2 — all 10 domain handlers implemented
Adds the complete set of v2 command handlers. Old CommandHandler is
untouched — handlers are standalone and not yet wired to anything.

Handlers added:
  PlaybackHandler  — playback (1 dependency)
  LoggingHandler   — log.set_serial/sd/mqtt
  FileHandler      — files.list/list_builtin/download/delete
  TelemetryHandler — telemetry.get_strikes/reset_strikes/get_loads
  RelayHandler     — relay.set_durations/set_outputs/get_config/test_output
  FirmwareHandler  — firmware.status/commit/rollback + ota.update/custom
  NetworkHandler   — network.info/status/set_config
  MQTTHandler      — mqtt.enable/disable
  SystemHandler    — ping/identify + system.* commands (8 total)
  ClockHandler     — 16 clock.* commands

Notable fixes vs. original CommandHandler:
  - clock.set_timings now sets pulseDuration/pauseDuration correctly
    (original called updateClockOutputs — was a bug)
  - system.restart uses a deferred FreeRTOS task (no blocking delay)
  - relay.test_output safety-gated: player must be fully stopped
  - Timekeeper class name (lowercase k) corrected throughout

Two compile-time fixes applied during build:
  - JsonVariantConst → const_cast<JsonDocument&>().as<JsonVariant>()
    (ConfigManager methods take non-const JsonVariant)
  - class TimeKeeper → class Timekeeper (actual class name in header)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-28 22:16:34 +02:00