The Wifi connection process changed to captive portal, and some no needed lines deleted.

This commit is contained in:
2026-10-04 11:45:17 +03:30
parent 6130a946fe
commit 00278119b6
6 changed files with 617 additions and 696 deletions
+12 -11
View File
@@ -1,16 +1,5 @@
#include "sdkconfig.h"
#include <esp_log.h>
#include <esp_system.h>
#include "esp_http_server.h"
#include <sys/param.h>
#include <string.h>
#include "driver/gpio.h"
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "img_converters.h"
#include "driver/i2c_master.h"
#include "esp_io_expander.h"
#include "freertos/stream_buffer.h"
#include "esp_camera.h"
#include "camera_pinout.h"
#include "esp32_s3_cam_ovxxxx.h"
@@ -75,6 +64,18 @@ esp_err_t init_camera(void)
return ESP_OK;
}
void start_camera_server(void)
{
httpd_config_t config = HTTPD_DEFAULT_CONFIG();
httpd_handle_t server = NULL;
if (httpd_start(&server, &config) == ESP_OK) {
httpd_uri_t uri_capture = { .uri = "/pic", .method = HTTP_GET, .handler = capture_handler };
httpd_uri_t uri_stream = { .uri = "/stream", .method = HTTP_GET, .handler = stream_handler };
httpd_register_uri_handler(server, &uri_capture);
httpd_register_uri_handler(server, &uri_stream);
}
}
#if defined(CONFIG_CAMERA_AF_SUPPORT) && CONFIG_CAMERA_AF_SUPPORT
static void maybe_init_autofocus(void)
{