Skip to content

Commit

Permalink
add ex. read sms
Browse files Browse the repository at this point in the history
  • Loading branch information
cristiansteib committed Apr 25, 2016
1 parent 0a9ac0b commit ca32e3f
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions examples/SMS/reading_sms.pde
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
}

0 comments on commit ca32e3f

Please sign in to comment.