Hello all, I have a Seeedstudio GPRS V2.0 that I am using right now connected to an Arduino Uno. I have the text messages working, I can send out messages. But what I want to do is turn on an output when I get confirmation that a message has been sent.
When a messages has been sent out properly, I get a response from the GPRS shield on the Serial monitor that says +CMGS: xxx .
xxx is the message number that increments up every time I send one out.
I am not concerned with the message number but I would like to turn on output 5 when I get +CMGS: from the shield.
Any help is appreciated, I have been struggling with this for days.
if(digitalRead(3) == HIGH){
Serial.println("Sending Text...");
gprsSerial.print("AT+CMGF=1\r"); // Set the shield to SMS mode
delay(100);
// send sms message, the phone number needs to include the country code e.g. if a U.S. phone number such as (540) 898-5543 then the string must be:
// +15408985543
gprsSerial.println("AT+CMGS = "+17802923786"");
delay(100);gprsSerial.print((char)26);//the ASCII code of the ctrl+z is 26 (required according to the datasheet)
delay(100);
I dont want to really post the full code of the project here in public as its proprietary to my application, but any help you can give me would be appreciated. I can send you the full code in a PM, willing to pay for this help right now.
Thank you,