Web Server AND ESP32 Web Server

Is it possible to use both Web Server and ESP32 Web Server?

Try it out and tell us!

1 Like

ah !
Maybe I should have included more detail… sorry!

I think this is an issue when installing the ESP32 Web Server via OTA.
For the first install its ok, then fails each time after as below…

[14:59:56][C][mdns:085]:   Hostname: bird_cam
[14:59:56][C][esp32_camera_web_server:088]: ESP32 Camera Web Server:
[14:59:56][C][esp32_camera_web_server:089]:   Port: 8080
[14:59:56][C][esp32_camera_web_server:091]:   Mode: stream
[14:59:56][E][esp32_camera_web_server:096]:   Setup Failed
[14:59:56][C][esp32_camera_web_server:088]: ESP32 Camera Web Server:
[14:59:56][C][esp32_camera_web_server:089]:   Port: 8081
[14:59:56][C][esp32_camera_web_server:093]:   Mode: snapshot
[14:59:56][E][esp32_camera_web_server:096]:   Setup Failed

I decided to follow the below method which worked.

  1. Created YAML in ESPHome to include both web servers
  2. Downloaded file as a .bin file
  3. Re-Flashed ESPHome using the Web Tools
  4. Connected to ESP Web Tools WiFi
  5. Uploaded the .bin file via OTA
  6. SUCCESS - I can now accsss via both ports
api:

web_server:
  port: 443

esp32_camera_web_server:
  - port: 8080
    mode: stream
  - port: 8081
    mode: snapshot
1 Like

Went to update my cam today, and got the same error as above!

  1. I’ll check my above workaround see if that will work
  2. I also need to update ESP Home as I’m currently using v2021.12.3 - so not sure if that’ll make a difference.