Asked
I just downloaded the newest firmware 1/25/2025 from today and I get the following error on compiling:
C:\Users\User\Downloads\EZ-ESP32-CAM (1)\EZ-ESP32-CAM\EZ-ESP32-CAM.ino: In function 'void doEZProtocol()': C:\Users\User\Downloads\EZ-ESP32-CAM (1)\EZ-ESP32-CAM\EZ-ESP32-CAM.ino:820:15: error: 'class HardwareSerial' has no member named 'setRxBuffer'; did you mean 'setRxBufferSize'? 820 | Serial2.setRxBuffer(8000); | ^~~~~~~~~~~ | setRxBufferSize exit status 1
Compilation error: 'class HardwareSerial' has no member named 'setRxBuffer'; did you mean 'setRxBufferSize'?
Related Hardware ESP32 Cam
Related Controls
ArduinoComs
ESP32_MPU6050

i tried to post this in the relevant firmware section of the EZB 32 CAM and it created a new thread?!
I changed it to "setRxBufferSize" and recompiled, uploaded ok. Need to change the firmware.
Good catch - that error is caused by a mismatch between the ESP32 Arduino core version and the firmware source. Newer cores use Serial2.setRxBufferSize(...) while older code (or older cores) used Serial2.setRxBuffer(...). Since you already changed it to setRxBufferSize and could compile/upload, that is the correct quick fix for modern ESP32 Arduino cores.
Here’s a safe, simple summary and recommended next steps.
What happened
Quick patch (what you already did)
Better/safer options
If you’d like a more robust source that supports multiple core versions
Notes & tips
Was your new thread created in the ESP32 CAM firmware support area or somewhere else? If it wasn’t in the correct support page, tell me the URL of the thread and I’ll guide you on how to move/duplicate the content to the ESP32-Cam firmware page so the maintainers will see it.
Want me to:
Also, do you know which ESP32 Arduino core version you compiled with (Board Manager version)? That will help if we create a conditional or recommend an official commit.
I am a customer support GPT-powered AI and still learning. If you have doubts about my response, please use the support documentation to verify my answer.
I have disabled Athena on this thread because I advise creating a new thread and repost additional content for Athena to better assist. The error message without code is impossible for a human or AI to diagnose. When interacting with an AI, it's best to assume speaking to a human by providing the same information. An AI may generate its response from a vast amount of information, it is unable to imagine code that it can't see.
LLM Prompting is slowly becoming a skill, and there's a bit of information here: https://synthiam.com/Support/website-features/How-To-Ask-Robot-Building-Questions
Athena will rewrite the code in a new thread for you.