• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

ESP32-CAM Take Photo and Display in Web Server

Q&A Forum › Category: ESP32 › ESP32-CAM Take Photo and Display in Web Server
0 Vote Up Vote Down
Janne asked 3 years ago

Hi

The project works-almost. But should the  “request->send_P(200, “text/plain”, “Taking Photo”);” answer to the “/capture” function give a visible answer on the web page?

I think the request should be able to get an answer with something like:

var xmlhttp = new XMLHttpRequest();
xmlhttp.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) {
document.getElementById("txtHint").innerHTML = this.responseText;

???

Tried many things but can’t get anything working

Another thing that I do not understand is that there is the :

“The ESPAsyncWebServer library requires the AsyncTCP library to work. ”

Yet it is not included in the sketch ? Is it called “under the hood” ?

Anyway thank’s again for an interesting project.

Janne

1 Answers
0 Vote Up Vote Down
Rui Santos Staff answered 3 years ago

It doesn’t need to give you a visible answer in your web page… (It could print a confirmation message, but it’s not required)

Yes, the ESPAsyncWebServer calls the AsyncTCP under the wood, so you don’t need to include it in the sketch (the ESPAsyncWebServer will include it for you).

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [eBook Updated] SMART HOME with RPi, ESP32, and ESP8266 (version 1.2) March 8, 2023
  • [eBook Updated] ESP32-CAM Projects (version 1.3) January 7, 2023

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2023 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.