Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Revision 1:e2fc45717136, committed 2015-10-09
- 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);}