• 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 and OTA

Q&A Forum › Category: ESP32 › ESP32-CAM and OTA
0 Vote Up Vote Down
Robert Fretz asked 2 years ago

I am trying to apply OTA to the ESP32-CAM. But there seems to be no ‘server’ object to attach to.
 

Question Tags: AsysncElegantOTA, ESP32, ESP32-Cam, OTA
4 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 2 years ago

Hi.
To which example do you want to add OTA?
Regards,
Sara

0 Vote Up Vote Down
Robert Fretz answered 2 years ago

Hi Sara
First I would like to say how much I appreciate your work. Your examples cover real world situations and I have implemented a surveillance camera sending e-mails when a person is detected.
In your ESP32-CAM book to start the camera and its webserver you typically use the line 
// Initialize the Camera
esp_err_t err = esp_camera_init(&config);
if (err != ESP_OK) {
Serial.printf("Camera init failed with error 0x%x", err);
return;
}

or in the example sketch ‘CameraWebServer’ we have the line
startCameraServer();
In both cases there is no obvious declaration of a ‘server’ object.
Q1: Does this mean I cannot attach OTA to this type of webserver?
Q2: Should OTA work if I create an additional Webserver with
AsyncWebServer server(80);?
Thanks and kind regards
Robert
 
 

0 Vote Up Vote Down
Robert Fretz answered 2 years ago

Addition: obviously I wolud have to use a different port number than 80, as 80 and 81 are already used by the camera

0 Vote Up Vote Down
Sara Santos Staff answered 2 years ago

Hi.
Take a look at this discussion and see if it helps: https://arduino.stackexchange.com/questions/75198/why-doesnt-ota-work-with-the-ai-thinker-esp32-cam-board
They provide an example of how to implement the “regular” OTA routine.
Does this help?
Regards,
Sara

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] ESP32-CAM Projects (version 1.3) January 7, 2023
  • [eBook Updated] SMART HOME with RPi, ESP32, and ESP8266 (version 1.1) November 20, 2022

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.