eloquentarduino / EloquentEsp32cam

Use your Esp32-cam like an expert
GNU General Public License v3.0
85 stars 16 forks source link

ESP32-CAM AI Thinker #31

Closed stevensarns closed 2 weeks ago

stevensarns commented 2 months ago

Hello, I have have an ESP32-CAM / AI Thinker - at least I thinker it is. The board is marked ESP32-S and executes examples of AI Thinker code correctly including camera server. I have installed library 2.7.6 in Arduino IDE 1.8.13. Attempting to compile "Take a picture" example I get the following compile error: c:\users\steve\documents\arduino\libraries\eloquentesp32cam-2.7.6\src\eloquent_esp32cam\camera\camera.h:77:32: error: 'struct camera_config_t' has no member named 'pin_sccb_scl' config.pin_sccb_scl = pinout.pins.sccb_scl;

Attempting to compile "Save picture to SD card" I get the following error: no matching function for call to 'Eloquent::Extra::Esp32::Wifi::Sta::connect()'

I like the simplicity of the code - it is 90% of my desired application (all that remains is ftp to my website). Any thoughts would be appreciated.

eloquentarduino commented 2 weeks ago

Sorry for late reply. The error is due to a mismatch of ESP32 core. You are on 1.X, while the library works with 2.0.X. You can either:

  1. upgrade the ESP32 core to 2.0.X
  2. open c:\users\steve\documents\arduino\libraries\eloquentesp32cam-2.7.6\src\eloquent_esp32cam\camera\camera.h file and rename pin_sccb_scl to pin_sscb_scl and pin_sccb_scl to pin_sscb_scl (note the double s instead of double c). But then I don't know if other errors will rise