Gobetwino interval mail CPFIL | SMAIL

"Use this command type if you want to copy a file on the PC. This command is useful if for instance
you are logging data to a log file and e-mailing it on a regular interval. You could have an empty
log file that you copy over the “used” log file that has just been e-mailed. In this way you would get
a fresh empty log file, and can start the logging cycle over again."

Hello,

I want to do this. Can anyone tell me how do i put the “regular interval” without affecting other functions of the arduino?

Thanks :slight_smile:

// i did go through the samples.

Can anyone tell me how do i put the "regular interval" without affecting other functions of the arduino?

On every pass through loop(), use millis() to see how much time has elapsed since the last time you sent data. Of course, this means that you need to keep track of when you send data.