I want to add authentication to the web server for video (module4, unit2 in your book), but I don’t know in what part of the code this should be done.
I noticed that in the first 3 modules the liberary <ESPAsyncWebServer.h> is used and in module 4 <esp_http_server.h>. Can you explain what is the difference between these libraries.
Hi.
At the moment, we don’t have any example to add authentication to the ESP32-CAM web server.
The ESPAsyncWebServer is an asynchronous web server library. It provides an easy way to handle HTTP requests with the ESP32 and easily send HTML text, CSS, and images. Like the image web servers we build.
Learn more about that library: https://github.com/me-no-dev/ESPAsyncWebServer
However, we were not able to “create” a video streaming code using that library. So, we’ve started from the esp_http_server library that is the library used on the video streaming example, to build different projects with video.
That’s why the video examples use that library.
https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/protocols/esp_http_server.html
Regards,
Sara
Sara,
Thanks for your reply.
I think for security reasons the possibility to add a login option for accessing the ESP32-Cam over internet is nescessary. Would you consider to add this to the ESP32-CAM project?
regards, Jo
Hi Jo.
Yes, you’re right.
We’ll try to come up with a solution for that in the next eBook update.
Thanks for your interest.
Regards,
Sara