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:
@@ -6,7 +6,7 @@
|
||||
#define TAG "WebSocketTransport"
|
||||
#include "../../../Logging/Logging.hpp"
|
||||
|
||||
WebSocketTransport::WebSocketTransport(WebSocketServer& wsServer, CommandBus& bus)
|
||||
WebSocketTransport::WebSocketTransport(WebSocketDriver& wsServer, CommandBus& bus)
|
||||
: _ws(wsServer)
|
||||
, _bus(bus) {
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user