could you try to run camera demo using Arduino core for ESP32 instead of esp-idf?
I haven’t used ESP32 camera by myself, but it looks like that demo from this repo should work fine https://github.com/BugerDread/esp32-mjpeg-ipcam .
The procedure to port probably most of ESP32 arduino project would be as follows (assuming no Arduino IDE installed and no additional libraries added):
1. Install Arduino IDE
2. Install Husarnet package for ESP32:
File -> Preferences
- in a field Additional Board Manager URLs add this link:
Tools -> Board: ... -> Boards Manager ...
- Search for
- Click Install button
3. Select ESP32 dev board:
Tools -> Board
- select AI Thinker ESP32-CAM under “ESP32 Arduino (Husarnet)” section
4. Port demo to Husarnet
- under the line, where you have WiFi connection in the code, add those lines:
/* Start Husarnet */
const char* hostName = "esp32cam";
const char* husarnetJoinCode = "fc94:b01d:1803:8dd8:b293:5c7d:7639:932a/xxxxxxxxxxxxxxxxxxxxx";
You will find your join code on app.husarnet.com after selecting network, clicking “add element” button and selecting “join code” tab.
Please let me know about results.