SerialGSM is a library for simplifying GSM shields.
This is sample code for sending SMS:
#include <SerialGSM.h>
#include <SoftwareSerial.h>
SerialGSM cell(2,3);
void setup(){
Serial.begin(9600);
cell.begin(9600);
cell.Verbose(true);
cell.Boot();
cell.FwdSMS2Serial();
cell.Rcpt("+972123456789");
cell.Message("hello world");
cell.SendSMS();
}
void loop(){
if (cell.ReceiveSMS()){
Serial.println(cell.Message());
cell.DeleteAllSMS();
}
}
As you can see, he uses software serial.
I intend to use this for my school thesis, but I am using a shield, so I won't be using Software Serial.
What bothers me is this line
SerialGSM cell(2,3);
In my case, do I declare it like this?:
SerialGSM cell(0,1);
Or will there be conflicts with serial?
EDIT: In other words, how do I declare the SeralGSM object using hardware serial and not software serial?
SerialGSMoutputs debug info to hardware serial. That means if you connect the hardware TX to your GPS, then it will probably go wrong. – Peter Bloomfield Jun 23 '14 at 16:33