Isuru Senarath
Member level 2
hi all,
I am trying to Send SMS using AT commands when I press the keypad button. I can send SMS using hyper-terminal (AT+CMGS="TEL NO"
MESSAGE
CTRLZ)
I think something wrong with my C program. Please guide me to send sms using C programming.
I am trying to Send SMS using AT commands when I press the keypad button. I can send SMS using hyper-terminal (AT+CMGS="TEL NO"
MESSAGE
CTRLZ)
I think something wrong with my C program. Please guide me to send sms using C programming.
Code:
if(rowLoc == 3 && colLoc == 0x0D) // keypad 0
{
SMSString( "\r");
Delay(50);
SMSString( "AT+CMGS=\"0718021336\"\r");//my mob number here
Delay(50);
SMSString("7.10PM");
Delay(50);
SMSString("CTRLZ");
Delay(50);
SMSString( "\r");
Delay(50);
lcdcmd(0x01); //clear screen
lcdcmd(0x80); //Row 1 and First Column
lcd_data_string("Info. Sent: 7.10PM ");
Delay(10);
lcdcmd(0x0C0);
lcd_data_string("ACHIVE Y/N? ");
Delay(10);
}
}