Hello everyone. I got a GSM module and trying to test it, sending SMS.
Is there any problem to my code below?
/ #include <GSM.h>
GSM gsmAccess;
GSM_SMS sms;
//GSM gsm;
// PIN Number
#define PINNUMBER ""
char numtel[20] = "+3069********";
void setup()
{
Serial.begin(9600); //Baud rate of the GSM/GPRS Module
delay(3000);
boolean notConnected = true;
while (notConnected) {
if (gsmAccess.begin(PINNUMBER) == GSM_READY) {
notConnected = false;
} else {
Serial.println("Not connected");
delay(1000);
}
sms.beginSMS(numtel);
sms.print("HELLO");
sms.endSMS();
}
void loop()
{
} /