This commit is contained in:
2026-09-11 10:19:50 +02:00
parent 1a11a0db99
commit 1261ad8f2d
17 changed files with 250 additions and 192 deletions
+19
View File
@@ -0,0 +1,19 @@
#include "esp_http_server.h"
#include "ygg_http_server.h"
#include "esp_log.h"
static const char *TAG = "YGG_HTTP_SERVER";
httpd_handle_t ygg_start_webserver(void)
{
httpd_handle_t server = NULL;
httpd_config_t config = HTTPD_DEFAULT_CONFIG();
ESP_LOGI(TAG, "Starting http server on port: %d", config.server_port);
if (httpd_start(&server, &config) == ESP_OK) {
return server;
}
ESP_LOGE(TAG, "Error starting server!");
return NULL;
}