I would like to send a sms from my arduino uno rev3 and icomsat v1.1 sim900 shield to my mobile phone. I just stack the gsm shield to the arduino without any jumper connection. Beside that, I'm also plugged in the usb cable and 9V/1.2A adapter to boot up the gsm shield. I'm using the gsm libraries provided from the official website. Below are the coding im using and the error i get. Anyone know why I get these error???
#include "SIM900.h"
#include <SoftwareSerial.h>
#include "sms.h"
SMSGSM sms;
boolean started=false;
void setup()
{
//Serial connection.
Serial.begin(9600);
Serial.println("GSM Shield testing.");
if (gsm.begin(2400)){
Serial.println("\nstatus=READY");
started=true;
}
else Serial.println("\nstatus=IDLE");
if(started){
if (sms.SendSMS("+60168881800", "SMS from Arduino"))
Serial.println("\nSMS sent OK");
}
};
void loop()
{
}
Error:
================================================================
sketch_mar13a.cpp:1:20: error: SIM900.h: No such file or directory
sketch_mar13a.cpp:3:17: error: sms.h: No such file or directory
sketch_mar13a.cpp:4:2: error: invalid preprocessing directive #SMSGSM
sketch_mar13a.cpp: In function ‘void setup()’:
sketch_mar13a:12: error: ‘gsm’ was not declared in this scope
sketch_mar13a:19: error: ‘sms’ was not declared in this scope
================================================================