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.
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