I am trying to send SMS via a SIM 808 GSM Module. After using AT+CMEE = 1, I am getting CMS +CMS ERROR: 604
.
AT + CMGL command is working fine but I am still not able to send SMS.
Here's the code :
#include<msp430.h>
void sms()
{
Serial.println("AT\r");
delay(1000);
Serial.println("AT+CMGF = 1\r");
delay(1000);
Serial.println("AT+CMGL = \"ALL\"\r");
Serial.println("AT+CMEE = 1\r");
Serial.println(" AT+CMGS =\"+91xxxxxxxxxx\"\r");
delay(1000);
Serial.println("HELLO WORLD");
delay(1000);
Serial.println((char)26);
delay(100);
}
void setup(){
Serial.begin(9600);
sms();
}
void loop(){
}