I want to send mobile messages from Arduino and ThingSpeak

Is there any way so that i can send the alert messages from arduino and thingspeak to both mobilephone and email.

Answers (1)

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.

4 Comments

can i get some reference for integrating thiongspeak and twilio along with matlab analysis
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);
Christopher,
Does MATLAB's sendmail function work when running a MATLAB analysis from within ThingSpeak (i.e., not a local MATLAB session)? I get this error:
Unable to run the '<<my MATLAB analysis>>' function, because it is not supported for this product offering.
Caused by:
Error using matlab.internal.lang.capability.Capability.require
This functionality is not available on remote platforms.
No, sendmail does not work in ThingSpeak. Please use the alerts service that I linked above.

Sign in to comment.

Communities

More Answers in the  ThingSpeak Community

Categories

Find more on ThingSpeak in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!