AsyncTelegram2 icon indicating copy to clipboard operation
AsyncTelegram2 copied to clipboard

esp32-cam getting photo

Open tiffass opened this issue 11 months ago • 4 comments

Using the ESP32-cam.ino example. Why do I need to send the /takePhoto command twice to get the current photo? At the first sending, a previously taken photo arrives, and only after the second sending of the command I already receive a new photo. Is this a bug in the code or a feature of telegrams?

tiffass avatar Aug 06 '23 07:08 tiffass

Hi @tiffass I've just uploaded a revisited and working example for ESP32-CAM

cotestatnt avatar Aug 11 '23 13:08 cotestatnt

No, it doesn't work either. First, there is a compilation error: sketch_aug12b:72:1: error: 'camera_config_t' has no non-static data member named 'sccb_i2c_port' }; ^ exit status 1 'camera_config_t' has no non-static data member named 'sccb_i2c_port'

If I comment the line .sccb_i2c_port = 1 compilation succeeds. Secondly, after loading the code and sending a command to get a photo from the module, the previous photo still comes first, and only when the request is sent the second time, I get the current photo. Here is a screenshot from the Telegram screen bot_32cam (I replaced /takePhoto with /on)

tiffass avatar Aug 12 '23 10:08 tiffass

Which version of ESP32 Arduino core are you using?

cotestatnt avatar Aug 12 '23 11:08 cotestatnt

2.0.2


upd. Updated to 2.0.11 - compilation error disappeared, but the situation with getting a photo remained the same

tiffass avatar Aug 12 '23 14:08 tiffass