Hello Sara,
I have the problem, that I can’t get UXGA resolution with the telegram bot.
I loaded the ESP32-CAM_WebServer.ino and have UXGA resolution.
With Module 3 Unit 4 no problem with SVGA (s->set_framesize(s, FRAMESIZE_SVGA);)
Changing to (s->set_framesize(s, FRAMESIZE_UVGA);) I get the following errors using “/photo”:
Date: Fri, 15 Mar 2024 15:00:44 GMT
Content-Type: text/html
Content-Length: 157
Connection: close
Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
Access-Control-Allow-Origin: *
Access-Control-Expose-Headers: Content-Length,Content-Type,Date,Server,Connection
<html>
<head><title>400 Bad Request</title></head>
<body>
<center><h1>400 Bad Request</h1></center>
<hr><center>nginx/1.18.0</center>
</body>
</html>
What do I wrong?
Thanks, Peter
Hi.
I’m not sure. But I think it’s related to the size of the picture.
A picture with UVGA format will occupy more space. But, I’m not sure how that interferes with the request. Maybe the ESP32 cannot handle sending a big image?? I’m not sure…
Regards,
Sara
Hello Sara,
if I replace
//if (c == ‘\n’)
//{
// if (getAll.length()==0) state=true;
// getAll = “”;
//}
//else if (c != ‘\r’)
// getAll += String(c);
//if (state==true) getBody += String(c);
//startTimer = millis();
with (from https://github.com/halfstudents/Sharing-ESP32S3-CAM-Pictures-On-Telegram/blob/main/ESP32_cam_telegram.zip)
if(state==true) getBody += String(c);
if(c == ‘\n’)
{
if(getAll.length()==0) state=true;
getAll = “”;
}
elseif(c != ‘\r’)
getAll += String(c);
startTimer = millis();
I get UXVA Resolution, but only with config.jpeg_quality = 44; // or lower
The size is 64KB.
I read, that with Telegram free, you can transmit pictures up to 2MB.
Greetings, Peter