refactor: move the transports into entryPoints and outputs

The HTTP servers and MQTT command handling go to src/entryPoints/, the
socket emitter and the MQTT and socket output of shades, groups and rooms
to src/outputs/. GLOSSARY.md names what they become once split:
WebUiRoutes, ApiRoutes and MqttCommands in, MqttPublisher and
SocketEmitter out.

Only files and include paths change. esp32devdbg flash goes from
1,546,405 to 1,546,257 bytes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
cjkas 2026-10-15 19:41:49 +02:00
parent 7396786b8c
commit e624a4177d
16 changed files with 42 additions and 15 deletions

View file

@ -13,11 +13,11 @@ static inline void safe_wdt_reset() {
}
#include "ConfigSettings.h"
#include "ESPNetwork.h"
#include "Web.h"
#include "Sockets.h"
#include "entryPoints/Web.h"
#include "outputs/Sockets.h"
#include "Utils.h"
#include "SSDP.h"
#include "MQTT.h"
#include "entryPoints/MQTT.h"
static const char *TAG = "Network";

View file

@ -8,9 +8,9 @@
#include "ConfigSettings.h"
#include "GitOTA.h"
#include "Utils.h"
#include "Sockets.h"
#include "outputs/Sockets.h"
#include "Somfy.h"
#include "Web.h"
#include "entryPoints/Web.h"
#include "WResp.h"
#include "ESPNetwork.h"

View file

@ -4,11 +4,11 @@
#include <esp_task_wdt.h>
#include "ConfigSettings.h"
#include "ESPNetwork.h"
#include "Web.h"
#include "Sockets.h"
#include "entryPoints/Web.h"
#include "outputs/Sockets.h"
#include "Utils.h"
#include "Somfy.h"
#include "MQTT.h"
#include "entryPoints/MQTT.h"
#include "GitOTA.h"
#include "esp_core_dump.h"
#include "esp_system.h"

View file

@ -10,7 +10,7 @@
#include "Utils.h"
#include "ConfigSettings.h"
#include "Somfy.h"
#include "Sockets.h"
#include "outputs/Sockets.h"
static const char *TAG = "Somfy";

View file

@ -3,7 +3,7 @@
#include <stdint.h>
#include "SomfyFrame.h"
// Commands the web servers hand to the main loop (src/Web.cpp). Kept free of
// Commands the web servers hand to the main loop (src/entryPoints/Web.cpp). Kept free of
// the web server and FreeRTOS so it can be unit tested on the PC
// (pio test -e native).

View file

@ -1,7 +1,7 @@
#include <esp_task_wdt.h>
#include "Somfy.h"
#include "Sockets.h"
#include "MQTT.h"
#include "entryPoints/MQTT.h"
extern SomfyShadeController somfy;
extern SocketEmitter sockEmit;

View file

@ -2,7 +2,7 @@
#include "ConfigSettings.h"
#include "Somfy.h"
#include "Sockets.h"
#include "MQTT.h"
#include "entryPoints/MQTT.h"
extern SomfyShadeController somfy;
extern SocketEmitter sockEmit;