vivek yadav / Mbed 2 deprecated gsm-vivek

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
vivekkya
Date:
Fri Oct 09 15:51:25 2015 +0000
Parent:
0:6ce4767a3c30
Commit message:
gsm

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Fri Oct 09 13:08:25 2015 +0000
+++ b/main.cpp	Fri Oct 09 15:51:25 2015 +0000
@@ -3,7 +3,7 @@
 char phone_no[] = "9805073071";  //enter your phone number
 char* txt;
 Serial GSM(p9,p10,txt);  // tx, rx
-int select=1; //select 1 for message and 0 for call 
+int select=0; //select 1 for message and 0 for call 
 
 
 
@@ -24,7 +24,7 @@
 }
 ////////////////////////////////////////////////////////////////////////////////////
 void GSM_CALL(char phone_no[])
-{         myled=1 ;                     
+{                       
 GSM.printf("ATD"); 
 GSM.printf(phone_no); 
 GSM.printf(";\n\r");
@@ -38,7 +38,7 @@
 GSM.printf("AT\n\r");//to wakeup gsm  
 if(select==0)
 {
-    led2=1;
+   
     GSM_CALL(phone_no);}
 if(select==1)
 {GSM_SMS(phone_no);}