feat(comms): bidirectional device control — bells master switch, guard toggle, runtime tracking, system aggregate commands
Adds full bidirectional remote control across all major subsystems, establishing the device as the single source of truth for all settings. New firmware features (F-029 to F-037): - bells.enable / bells.disable: master ON/OFF for all playback and clock alerts (relay.test_output intentionally unaffected) - telemetry.set_guard_enabled: enable/disable thermal protection at runtime without touching thresholds - telemetry.set_max_loads: set bellMaxLoad per-bell or globally via command - Device runtime tracking: lifetime seconds flushed to SD every 10 min, boot log (up to 200 entries, rotating) written after first NTP sync - Total playback counter persisted to SD, increments on every play() - telemetry.get_metrics / telemetry.reset_metrics: new aggregate read + reset - system.get_config (replaces system.get_settings, old name still accepted), system.get_all (everything in one call), system.get_telemetry - log.get_config, mqtt.get_config, bells.get_config: new getters for previously write-only subsystems - network.status now includes ssid, mac, hostname - BellsHandler: new handler registered on CommandBus - LegacyAdapter updated with all new command mappings Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -33,9 +33,11 @@ private:
|
||||
CommandResult handleIdentify(const CommandEnvelope& e);
|
||||
CommandResult handleStatus(const CommandEnvelope& e);
|
||||
CommandResult handleGetTime(const CommandEnvelope& e);
|
||||
CommandResult handleGetSettings(const CommandEnvelope& e);
|
||||
CommandResult handleGetConfig(const CommandEnvelope& e);
|
||||
CommandResult handleGetDeviceInfo(const CommandEnvelope& e);
|
||||
CommandResult handleHealth(const CommandEnvelope& e);
|
||||
CommandResult handleGetAll(const CommandEnvelope& e);
|
||||
CommandResult handleGetTelemetry(const CommandEnvelope& e);
|
||||
CommandResult handleFactoryReset(const CommandEnvelope& e);
|
||||
CommandResult handleRestart(const CommandEnvelope& e);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user