• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

error uploading sketch

Q&A Forum › Category: ESP32 › error uploading sketch
0 Vote Up Vote Down
Mike McKinney asked 5 years ago

I keep getting and error as follows when uploading the sketch for camera_email:
Arduino: 1.8.12 (Windows 10), Board: “AI Thinker ESP32-CAM”
sketch_camera_email:235:1: error: expected declaration before ‘}’ token
}
^
Multiple libraries were found for “WiFi.h”
Used: C:\Users\TheRa\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4\libraries\WiFi
Not used: C:\Program Files (x86)\Arduino\libraries\WiFi
Multiple libraries were found for “SD.h”
Used: C:\Users\TheRa\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4\libraries\SD
Not used: C:\Program Files (x86)\Arduino\libraries\SD
exit status 1
expected declaration before ‘}’ token
This report would have more information with
“Show verbose output during compilation”
option enabled in File -> Preferences.
this is in the ESP-CAM: Take and Send Photos via Email using an SMTP Server
I was able to get the camera to stream but am having problems with the Camerawebserver sketch and the send picture sketch. Have copied and pasted both sketches. Not real good with these, so any help appreciated.

2 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 5 years ago

Hi.
I tried the sketch and it compiled ok for me.
Are you sure you’ve copied the whole code? 
 error: expected declaration before ‘}’ token } is a syntax error that means you’re missing a } somewhere.
The “multiple libraries” warning shouldn’t be an issue.
Regards,
Sara

0 Vote Up Vote Down
Mike McKinney answered 5 years ago

I will try copy and paste it again. Thanks for your response.

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [eBook Updated] Learn Raspberry Pi Pico/Pico W with MicroPython eBook – Version 1.2 May 26, 2025
  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.