I want to send mobile messages from Arduino and ThingSpeak
26 views (last 30 days)
Show older comments
Is there any way so that i can send the alert messages from arduino and thingspeak to both mobilephone and email.
0 Comments
Answers (1)
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.
2 Comments
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);
Communities
More Answers in the ThingSpeak Community
See Also
Categories
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!