I want to send mobile messages from Arduino and ThingSpeak

32 views (last 30 days)
Is there any way so that i can send the alert messages from arduino and thingspeak to both mobilephone and email.

Answers (1)

Christopher Stapels
Christopher Stapels on 4 May 2022
If you have email on your phone, you can use theThingSpeak alerts service to trigger emails from the Arduino and from other connected devices.
If you are looking to do SMS, you can use MATLAB analysis and webread or webwrite to trigger and external service such as Twillio to send SMS text messages, or most cell providers provide a text frowarding addresss from email that you can use.
Christopher Stapels
Christopher Stapels on 4 May 2022
Here is the doc page for MATLAB analysis, and you may want to use the TimeControl or React apps to trigger the code. Id watch this movie series IoT from Data to Action to see the whole workflow.
Here is the code I use in MATLAB analysis to trigger Twillio, you will need a paid account and to register your phone number with them.
URL='https://api.twilio.com/2010-04-01/Accounts/<ACCOUNT SID>/Messages.json';
opt = weboptions();
opt.Username = '<ACCOUNT SID>';
opt.Password = '<AUTH TOKEN>';
to = '<PhoneNoToSend>';
from = '<MyTwilioPhone>';
body = 'My Hello from ThingSpeak';
webwrite(URL,'To',to,'From',from,'Body',body, opt);

Sign in to comment.


More Answers in the  ThingSpeak Community

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by