While i am writing a code for make a voice call from arduino using GSM module the folloeing error is occured
gsm_make_a_call.ino:3:1: error: stray '' in program
gsm_make_a_call.ino:3:1: error: stray '' in program
gsm_make_a_call.ino:13:1: error: stray '' in program
gsm_make_a_call.ino:13:1: error: stray '' in program
gsm_make_a_call.ino:15:1: error: stray '' in program
gsm_make_a_call.ino:15:1: error: stray '' in program
gsm_make_a_call.ino:19:1: error: stray '' in program
gsm_make_a_call.ino:19:1: error: stray '' in program
gsm_make_a_call.ino:23:1: error: stray '' in program
gsm_make_a_call.ino:23:1: error: stray '' in program
gsm_make_a_call.ino:3:18: error: 'u201d9443303461' was not declared in this scope
gsm_make_a_call.ino: In function 'void setup()':
gsm_make_a_call.ino:13:17: error: 'u201cAT' was not declared in this scope
gsm_make_a_call.ino:15:15: error: 'u201cATD' was not declared in this scope
gsm_make_a_call.ino:19:17: error: 'u201c' was not declared in this scope
gsm_make_a_call.ino:19:24: error: 'u201d' was not declared in this scope
gsm_make_a_call.ino:19:29: error: expected ';' before ')' token
gsm_make_a_call.ino:23:15: error: 'u201cATH' was not declared in this scope
stray '' in program
my code is //Code for Dialling a number
char phone_no[]=”9895040519”;
void setup()
{
Serial.begin(9600); //Open Serial Connection at baudrate 9600
delay(2000);
Serial.println(“AT”); // Wake up GSM
Serial.print(“ATD”); //Dial the phone number using ATD command
Serial.print(phone_no);
Serial.println(“;”); // Semicolon is a must at the end
delay(10000);
Serial.println(“ATH”); // After a delay of 5 secs Hang the call
}
void loop()
{
// empty loop.If you enter the above code here,the call will be made FOR EVER repeatedly.
//Take Caution while coding under loop.At some condition you’ve to terminate the Call
}