ESP8266 random email error

Background: I have using a ESP2866 for a number of scripts to collect temperature and/or humidity data in a array and then send the data to an email.

Regardless of any of the email scripts I have included in my scripts, the program will only run once and then stop.

To get automated data emails sent over a long period of time I have the script do a reset after sending each email. That usually works out well for my needs.

What I have run into from time to time is this error message:

Connecting to SMTP server...

C: ESP Mail Client v3.4.9

Error, library or device time was not set, see examples/SMTP/Set_Time.ino for manually time setting

! E: library or device time was not set, see examples/SMTP/Set_Time.ino for manually time setting

C: connecting to SMTP server
C: Host > server147.web-hosting.com
C: Port > 465

User exception (panic/abort/assert)
--------------- CUT HERE FOR EXCEPTION DECODER --------------

I made an attempt at "manually time setting" but I am not sure I modified the Set_Time.ino correctly or it just does not work.

The script seems to work most of the time but it seems it just gets bug and acts up with this error message on the serial monitor output.

Any ideas if this error is cause by "the device time not set" or something more along the lines of my connection with the server? Anyone know exactly how the make the change in the Set_Time.ino or whatever is needed to manually set the time?

You should post the sketch to which you refer. It will get a better response.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.