Search found 5 matches

by jimbrown-net
Mon Feb 05, 2024 2:50 pm
Forum: ESP32 Arduino
Topic: WakeUp from Deep Sleep GPIO2 and SMTP
Replies: 5
Views: 1335

Re: WakeUp from Deep Sleep GPIO2 and SMTP

Looks like commenting out time server seems to fix the second GPIO2 push button issue. Error: Error, Status Code: 554, Error Code: -109, Reason: send body failed. I do get a SMTP 406 Error, but email is still sent. also the below code fixed SMTP Send eMail on Boot. Full Code: #include <Arduino.h> #i...
by jimbrown-net
Tue Jan 30, 2024 12:54 am
Forum: ESP32 Arduino
Topic: WakeUp from Deep Sleep GPIO2 and SMTP
Replies: 5
Views: 1335

Re: WakeUp from Deep Sleep GPIO2 and SMTP

lbernstone wrote:
Tue Jan 30, 2024 12:46 am
I give advice, not code. Ask ChatGPT if you want a bot to write it for you.
Wow, thanks!!!
by jimbrown-net
Mon Jan 29, 2024 1:44 pm
Forum: ESP32 Arduino
Topic: WakeUp from Deep Sleep GPIO2 and SMTP
Replies: 5
Views: 1335

Re: WakeUp from Deep Sleep GPIO2 and SMTP

1) Make a function for your SMTP send. This makes your code readable, and helps with logic. Call that from setup with `if (esp_sleep_get_wakeup_cause() == ESP_SLEEP_WAKEUP_EXT0) smtpSend();` 2) Call WiFi.disconnect(true) before you go to sleep. Check that WiFi is up and connected before you try to ...
by jimbrown-net
Sun Jan 28, 2024 7:21 pm
Forum: ESP32 Arduino
Topic: WakeUp from Deep Sleep GPIO2 and SMTP
Replies: 5
Views: 1335

WakeUp from Deep Sleep GPIO2 and SMTP

I am trying to create a ESP32 SMTP eMail when GPIO2 is pushed. Using these two examples: SMTP: : ESP32 Send Emails using SMTP Server: HTML, Text, Attachments (Arduino IDE) | Random Nerd Tutorials and Deep Sleep: ESP32 External Wake Up from Deep Sleep | Random Nerd Tutorials I have two Issues, first ...
by jimbrown-net
Sun Jan 28, 2024 6:49 pm
Forum: General Discussion
Topic: WakeUpGPIO2 and SMTP
Replies: 0
Views: 558

WakeUpGPIO2 and SMTP

I have tried to make an SMTP app using this code: https://randomnerdtutorials.com/esp32-send-email-smtp-server-arduino-ide/#send-email and then added a deep sleep using this method: https://randomnerdtutorials.com/esp32-external-wake-up-deep-sleep/ two issues one SMTP is sent everytime ESP32 boots a...