From: AceVest Date: Sun, 17 Jan 2021 06:24:00 +0000 (+0800) Subject: ... X-Git-Url: http://zhaoyanbai.com/repos/?a=commitdiff_plain;h=0cfd60cb92eef7a9a43f6a7b31b5967b3f6be20f;p=acecode.git ... --- 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; }