mobizt / ESP-Mail-Client

The comprehensive Arduino Email Client Library to send and read Email for Arduino devices. The library also supports other network shields or modules e.g., Wi-Fi, Ethernet, and GSM/4G modules.
https://mobizt.github.io/ESP-Mail-Client/
MIT License
200 stars 58 forks source link

Example fails to compile: "config" variable declared twice #280

Closed PPoliakoff closed 1 year ago

PPoliakoff commented 1 year ago

Build tool used:

Board used (ESP32):

Other Libraries That are used:

Description of problem: in the code of examples/SMTP/Send_Camera_Image/ESP_Camera/ESP_Camera.ino The variable "config" is defined twice:

camera_config_t config;
Session_Config config;

This cause a compile error.

Share code snippet to reproduce the issue:

PASTE .cpp / .ino code here

Additional information and things you've tried:

mobizt commented 1 year ago

Thanks for reporting this. I will fix and update.

mobizt commented 1 year ago

Now it fixed already. https://github.com/mobizt/ESP-Mail-Client/tree/master/examples/SMTP/Send_Camera_Image/ESP_Camera