refactor(comms): clean up Communication folder structure

- Delete dead code: CommandHandler (700-line God Class) and
  HTTPRequestHandler — both replaced by new architecture in Stage 4
- Create Drivers/ group for the three low-level protocol drivers,
  mirroring the Transport/ pattern:
    MQTTAsyncClient    → Drivers/MQTTDriver    (class: MQTTDriver)
    WebSocketServer    → Drivers/WebSocketDriver (class: WebSocketDriver)
    UARTCommandHandler → Drivers/UARTDriver    (class: UARTDriver)
- Update all includes and type references across CommunicationRouter,
  all three Transport wrappers, and MQTTHandler
- Add -std=gnu++14 + build_unflags to platformio.ini so std::make_unique
  compiles on ESP32 (required by CommunicationRouter::registerHandlers)

Build: passing

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-28 23:22:50 +02:00
co-authored by Claude Sonnet 4.6
parent 682c604abe
commit c3dc0a79bc
20 changed files with 149 additions and 1928 deletions
@@ -23,7 +23,7 @@ const size_t UARTTransport::WHITELIST_SIZE =
// ---------------------------------------------------------------------------
UARTTransport::UARTTransport(UARTCommandHandler& uart, CommandBus& bus)
UARTTransport::UARTTransport(UARTDriver& uart, CommandBus& bus)
: _uart(uart)
, _bus(bus) {
}