Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

esp32-cam getting photo #115

Open
tiffass opened this issue Aug 6, 2023 · 4 comments
Open

esp32-cam getting photo #115

tiffass opened this issue Aug 6, 2023 · 4 comments

Comments

@tiffass
Copy link

tiffass commented Aug 6, 2023

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
Copy link
Owner

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

@tiffass
Copy link
Author

tiffass commented Aug 12, 2023

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
Copy link
Owner

Which version of ESP32 Arduino core are you using?

@tiffass
Copy link
Author

tiffass commented Aug 12, 2023

2.0.2


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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants