From 0cfd60cb92eef7a9a43f6a7b31b5967b3f6be20f Mon Sep 17 00:00:00 2001 From: AceVest Date: Sun, 17 Jan 2021 14:24:00 +0800 Subject: [PATCH] ... --- projects/esp32_video_stream/esp32cam/esp32cam.ino | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/projects/esp32_video_stream/esp32cam/esp32cam.ino b/projects/esp32_video_stream/esp32cam/esp32cam.ino index 08ccb51..e75acc5 100644 --- a/projects/esp32_video_stream/esp32cam/esp32cam.ino +++ b/projects/esp32_video_stream/esp32cam/esp32cam.ino @@ -10,10 +10,11 @@ typedef struct { const char *pwd; } WiFiItem_t; -const char* websockets_server_host = "10.0.0.10"; +const char* websockets_server_host = "10.0.0.6"; const uint16_t websockets_server_port = 80; WiFiItem_t WiFiTable[] = { + { "AceNetGear2G", "acewifipwdis123" }, { "WiFiName1", "" }, { "WiFiName2", "12345678" }, { "WiFiName3", "87654321" } @@ -65,10 +66,10 @@ void setup_camera() { config.pin_reset = RESET_GPIO_NUM; config.xclk_freq_hz = 20000000; config.pixel_format = PIXFORMAT_JPEG; - config.frame_size = FRAMESIZE_QVGA; - config.jpeg_quality = 10; + config.frame_size = FRAMESIZE_QQVGA; + config.jpeg_quality = 24; config.fb_count = 1; - + esp_err_t err = esp_camera_init(&config); if (err != ESP_OK) { @@ -112,6 +113,7 @@ void capture_video() { Serial.println(F("Camera capture failed")); } else { client.sendBinary((const char *)fb->buf, fb->len); + Serial.printf("send %u bytes\n", fb->len); esp_camera_fb_return(fb); fb = NULL; } -- 2.44.0