• 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 months 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 months 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 months 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 Released] Build Web Servers with ESP32 and ESP8266 (version 1.0) October 27, 2020
  • [eBook Updated] Download Build ESP32-CAM Projects using Arduino IDE (version 1.1) August 31, 2020

You must be logged in to view this content.

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

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