-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0a9ac0b
commit ca32e3f
Showing
1 changed file
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/* | ||
Example for Sim800l library | ||
by Cristian Steib , < steibkhriz@gmail.com > | ||
Demonstrate the use of the library | ||
for send a sms. | ||
Created 24 April 2016 | ||
*/ | ||
|
||
#include <Sim800l.h> | ||
#include <SoftwareSerial.h> //is necesary for the library!! | ||
Sim800l Sim800l; //to declare the library | ||
String text; // to almacenate the text of the sms | ||
uint8_t index; // to indicate the message to read. | ||
|
||
|
||
void setup(){ | ||
Serial.begin(9600); // only for debug the results . | ||
Sim800l.begin(); // initializate the library. | ||
index=1; // first position in the prefered memory storage. | ||
text=Sim800l.readSms(index); | ||
Serial.println(text); | ||
|
||
} | ||
|
||
void loop(){ | ||
//do nothing | ||
} |