safe entry from arduino to thingspeak and matlab
Puteri Afrina
on 10 Feb 2022
Latest activity Reply by Christopher Stapels
on 10 Feb 2022
I built a safe entry mechanism and i would like the matlab to send an email alert when arduino is not communicating or sending any data to thingspeak. How do i write the program to detect system down and to send email alert?
1 Comment
Time DescendingI would write MATLAB code that sends an email to you using this template . Then you can ask ThingSpeak to trigger that code using a no data entry React .
Another method that I used is to have a time control run a different MATLAB script to read the timestamp of the last data in the channel
[data,timestamps] = thingSpeakRead(channelID...);
and then compare that to the present timestamp.
timeNow = datetime('now');
If the difference is greater than some value, you can trigger an email using the same template as above.
Sign in to participate