diff --git a/main/config.h b/main/config.h index e02eaa0..9c73bb0 100644 --- a/main/config.h +++ b/main/config.h @@ -19,7 +19,7 @@ // HTTP Server #define HTTP_SERVER_PORT 80 -#define HTTP_MAX_URI_HANDLERS 14 // Number of endpoint handlers +#define HTTP_MAX_URI_HANDLERS 16 // Number of endpoint handlers #define HTTP_RECV_TIMEOUT_SEC 10 // Timeout for receiving requests #define HTTP_SEND_TIMEOUT_SEC 10 // Timeout for sending responses #define HTTP_STACK_SIZE 8192 // Stack size for HTTP server task @@ -112,6 +112,7 @@ #define HTTP_MQTT_CONFIG_BUFFER_SIZE 512 // Buffer for MQTT config requests #define HTTP_WIFI_SCAN_BUFFER_SIZE 4096 // Buffer for WiFi scan results JSON #define HTTP_OTA_BUFFER_SIZE 4096 // Buffer for OTA firmware chunks +#define HTTP_API_COMMAND_BUFFER_SIZE 256 // Buffer for /api/command requests // ====================================================== // Timeouts & Delays diff --git a/main/web_handlers.c b/main/web_handlers.c index 5397ca0..d1d2525 100644 --- a/main/web_handlers.c +++ b/main/web_handlers.c @@ -6,6 +6,7 @@ #include "message_decoder.h" #include "tcp_bridge.h" #include "device_serial.h" +#include "bus.h" #include "esp_wifi.h" #include "esp_log.h" #include "esp_system.h" @@ -95,6 +96,7 @@ char *get_page_nav(const char page) { "