2
2
ControlBySMS
3
3
4
4
Demonstrates using an SMS message to a Twilio account to turn an LED
5
- on the Yun board on and off using the Temboo Arduino Yun SDK.
5
+ on the Yún board on and off using the Temboo Arduino Yún SDK.
6
6
Sending a SMS with the text "LED ON" to your Twilio phone number
7
- will turn on the LED on the Yun . Sending "LED OFF" will turn it off.
7
+ will turn on the LED on the Yún . Sending "LED OFF" will turn it off.
8
8
9
9
Check out the latest Arduino & Temboo examples and support docs at http://www.temboo.com/arduino
10
10
44
44
45
45
Your account will now receive SMS messages, but won't send any responses.
46
46
47
- This example assumes basic familiarity with Arduino sketches, and that your Yun is connected
47
+ This example assumes basic familiarity with Arduino sketches, and that your Yún is connected
48
48
to the Internet.
49
49
50
50
Looking for another API? We've got over 100 in our Library!
@@ -85,7 +85,7 @@ unsigned long lastSMSCheckTime = -SMS_CHECK_PERIOD;
85
85
// (we only need to process newer messages)
86
86
String lastSid;
87
87
88
- // we'll be turning the LED built in to the Yun on and off
88
+ // we'll be turning the LED built in to the Yún on and off
89
89
// to simulate controlling some device. That LED is on pin 13.
90
90
int LED_PIN = 13 ;
91
91
@@ -106,7 +106,7 @@ void setup() {
106
106
// start with the LED off
107
107
digitalWrite (LED_PIN, LOW);
108
108
109
- // initialize the connection to the Linino processor .
109
+ // initialize the connection to Linux .
110
110
Bridge.begin ();
111
111
112
112
// Twilio will report old SMS messages. We want to
@@ -183,7 +183,7 @@ void checkForMessages(bool ignoreCommands) {
183
183
// this account receives lots of messages in quick succession,
184
184
// (more than 3 per minute in this case), we might miss some control
185
185
// messages. But if we request too many messages, we might run out of
186
- // memory on the Arduino side of the Yun .
186
+ // memory on the Arduino side of the Yún .
187
187
ListMessagesChoreo.addInput (" PageSize" , " 3" );
188
188
189
189
// We want the response in XML format to process with our
0 commit comments