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
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).