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:
@@ -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) {
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user