cotestatnt / AsyncTelegram2

Powerful, flexible and secure Arduino Telegram BOT library. Hardware independent, it can be used with any MCU capable of handling an SSL connection.
MIT License
83 stars 25 forks source link

esp32-cam getting photo #115

Open tiffass opened 11 months ago

tiffass commented 11 months ago

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?

cotestatnt commented 11 months ago

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

tiffass commented 11 months ago

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)

cotestatnt commented 10 months ago

Which version of ESP32 Arduino core are you using?

tiffass commented 10 months ago

2.0.2


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