I have a Seeed GPRS Shield V1.0 and have got som help with http request.
http://forum.arduino.cc/index.php?topic=199533.msg1475737#msg1475737
It works fine, but now I have bought a Seeed GPRS Shield V2.0 and it does not work.
AT+CGATT?
+CGATT: 0
AT+CSTT="internet"
ERROR
What is the problem ?
Now I have solved the problem with a delay
It was because AT+CGATT returned an 0
Serial1.println("AT+CPIN?");
Serial1.println("AT+CSQ");
Serial1.println("AT+CREG?");
delay(4000);
Serial1.println("AT+CGATT?"); //Attach or Detach from GPRS Service (Result 1 = Attach , 2 = Detached )
And the output
AT+CPIN?
+CPIN: READY
OK
AT+CSQ
+CSQ: 5,0
OK
AT+CREG?
+CREG: 0,1
OK
AT+CGATT?
+CGATT: 1
OK
AT+CSTT="internet"
OK
How do I make a loop waiting for an 1 from AT+CGATT